Skip to content

[BUGFIX] Keep author URLs without a scheme absolute - #373

Open
hahnmg wants to merge 1 commit into
masterfrom
bugfix/author-urls-without-scheme
Open

hahnmg wants to merge 1 commit into
masterfrom
bugfix/author-urls-without-scheme

Conversation

@hahnmg

@hahnmg hahnmg commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Author fields like website, LinkedIn or Xing are plain inputs, and the website field even validates as a domain name, so values like www.example.com are common. SchemaUtility resolved those against the current page (https://site/some/page/www.example.com), which broke sameAs, url and @id in the Person JSON-LD. The author partial printed them as relative links that end in a 404.

URLs without a scheme now get https://, in the schema via SchemaUtility::getAbsoluteUrl(), in the template via f:uri.external. Values starting with / still resolve against the host.

@hahnmg hahnmg self-assigned this Oct 12, 2026

@buchmarv buchmarv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test case starting with / as this is what's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants