mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
Fixes issue where internal document links in shared documents with custom static URLs would have their share path duplicated, causing malformed URLs. The bug was in ProsemirrorHelper.replaceInternalUrls() where the replaceUrl function would replace ALL occurrences of '/doc/' with 'basePath/doc/', even when the URL already contained the correct share path structure. Now only URLs that start with '/doc/' get the basePath prepended, preventing duplication for URLs that already have the share path. Fixes #9338 Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>