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)
Mon, Apr 1, 00:58
Unknown Object (File)
Mar 25 2024, 07:34
Unknown Object (File)
Mar 25 2024, 06:47
Unknown Object (File)
Mar 25 2024, 06:16
Unknown Object (File)
Mar 21 2024, 11:26
Unknown Object (File)
Mar 21 2024, 09:57
Unknown Object (File)
Mar 20 2024, 18:26
Unknown Object (File)
Feb 23 2024, 11:54

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