Skip to content

[Backport 2026.02.xx] Template resolution and link handling - #12829

Merged
offtherailz merged 1 commit into
2026.02.xxfrom
backport-12824-to-2026.02.xx
Aug 24, 2026
Merged

offtherailz merged 1 commit into
2026.02.xxfrom
backport-12824-to-2026.02.xx

Conversation

@offtherailz

Copy link
Copy Markdown
Member

Description

Backport of #12824 to 2026.02.xx.

Fixes #12823

* refactor: resolve template placeholders without compiling them

Templates are resolved with generateTemplateString, that now keeps 0 and false
instead of replacing every falsy value. Only property references are supported,
expressions are not.

* refactor: move link target checks to URLUtils

getSafeHref keeps the references without protocol and drops the others,
isValidURL rejects non strings and paths resolved on another host.

* fix: report permalink targets that are not application paths

* chore: use getSafeHref for geostory and catalog links

* test: coverage for the html rendering components

(cherry picked from commit 89bfae8)
@offtherailz offtherailz added this to the 2026.03.00 milestone Aug 24, 2026
@cla-bot cla-bot Bot added the CLA Ready label Aug 24, 2026
@offtherailz
offtherailz enabled auto-merge (squash) August 24, 2026 13:15
@offtherailz offtherailz mentioned this pull request Aug 24, 2026
5 of 12 tasks
@tdipisa
tdipisa requested a review from MV88 August 24, 2026 14:00
@tdipisa
tdipisa removed the request for review from MV88 August 24, 2026 14:02
@tdipisa tdipisa assigned tdipisa and unassigned MV88 Aug 24, 2026
@tdipisa tdipisa linked an issue Aug 24, 2026 that may be closed by this pull request
4 tasks
@offtherailz
offtherailz merged commit 5cc68dc into 2026.02.xx Aug 24, 2026
19 checks passed
@offtherailz
offtherailz deleted the backport-12824-to-2026.02.xx branch August 24, 2026 14:03
@tdipisa tdipisa removed this from the 2026.03.00 milestone Aug 24, 2026
tdipisa added a commit that referenced this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants