From f9e31709fc32a09fd3f10024a4b123ba6cc1ea34 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Tue, 6 May 2025 13:11:38 +1000 Subject: [PATCH] DOC-3151: Autolink behavior updated to preserve existing links. --- modules/ROOT/pages/7.9.0-release-notes.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index 6394d0a9a6..8de0570932 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -157,6 +157,21 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a // #TINY-vwxyz1 // CCFR here. +=== Autolink behavior updated to preserve existing links +// TINY-11836 + +Previously, the Autolink plugin could incorrectly re-link content that was already part of a hyperlink when the user pressed Enter at the end of a line. This occurred when the cursor was placed immediately after a link element rather than inside it and the visible text resembled a URL. As a result, Autolink could unintentionally overwrite link attributes, modify the destination URL, or alter otherwise valid markup. + +{productname} {release-version} resolves this issue by treating any text inside or directly following a hyperlink as the end of its search scope. This prevents Autolink from creating a new link if the content is already hyperlinked. The behavior now consistently mirrors the existing handling for cases when the cursor is inside a link. + +.Example of incorrect behavior +[source,html] +---- +

www.google.com

+

www.google.com

+---- + +This update improves reliability when working with links, ensuring that attributes and destinations remain unchanged unless explicitly edited. [[security-fixes]]