Page MenuHomePhorge

Remarkup: avoid to open internal pages as external links (as default)
AbandonedPublic

Authored by valerio.bozzolan on Mar 23 2023, 10:49.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 9, 06:42
Unknown Object (File)
Wed, Jul 3, 18:34
Unknown Object (File)
Wed, Jul 3, 10:30
Unknown Object (File)
Wed, Jul 3, 01:51
Unknown Object (File)
Sun, Jun 30, 11:26
Unknown Object (File)
Sun, Jun 30, 11:23
Unknown Object (File)
Fri, Jun 28, 05:59
Unknown Object (File)
Mon, Jun 24, 00:04

Details

Summary

This is an attempt to improve the default behavior in Remarkup about
links. It does not change any behaviors manually specified in the engine
and it does not change any behaviors related to external domains.

As default, now these kind of links will open in the same tab:

  • anchors
  • relative URLs
  • absolute URLs pointing to the base-URI domain

All the other cases are kept as before - so they open in another tab.

https://we.phorge.it/T15161

This situation can further improve but it already covers most of the
cases where most users do not expect to break their navigation into
several tabs. Moreover, if an user wants to open a link in another
window, no one prevents from using the middle mouse button,
or CTRL+click or any other nice really basic feature from their browser.

Closes T15161

Test Plan
  • Copy the example text from this Task: https://we.phorge.it/T15161
  • Verify that "internal resources" are internal links as default now
  • Verify that "external resources" are still external links as before

Diff Detail

Repository
rP Phorge
Branch
remarkup-noexternal-apply
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 159
Build 159: arc lint + arc unit