adobe / adobe/aem-core-wcm-components

[Link Handling] Links to non-existing content pages should be handled as invalid

Open
#727 8 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
796
Forks
776
Avg merge
3d 22h
Merged PRs (30d)
8

Description

currently, the "link handling" logic in the core components works like this:
* if the link URL is a content path pointing to an existing content page, is is externalized (e.g. adding ".html" extension)
* if not the link URL is assumed to be an external URL and inserted unchanged into the markup

actual: in the case that the link URL is a content path (e.g. starting with "/content") that _does not_ point to a valid page (e.g. the target page was deleted or is not yet published), the link handling logic does not detect this and renders the link pointing to an un-externalized and invalid content path.

expected: the link handling should detect invalid internal content page references and handle those links as invalid.

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files, tests, or entry points. Start by locating the core components' link-handling logic and reproduce a /content link targeting a deleted or unpublished page; done means invalid internal content references are detected and no longer rendered as valid links.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.