Page MenuHomePhorge

Simplify the way "internal links" are identified
Closed, ResolvedPublic

Description

At the moment these two classes have similar checks to identify anchors and relative URLs or absolute URLs:

  • PhutilRemarkupDocumentLinkRule
  • PhutilRemarkupHyperlinkRule

This can be somehow generalized to simplify the general question "is this damn link pointing to an internal resource?"

Goals:

D25082 clear method to identify an anchor
D25082 clear method to identify a relative URL
D25083 clear method to identify an URL pointing to a domain that is my very same base-uri

Event Timeline

valerio.bozzolan triaged this task as Low priority.
valerio.bozzolan created this object in space S1 Public.