Skip to content

Fix homepage link generation, generate fallbacks as relative unless canonical#2207

Merged
SvanteRichter merged 1 commit intomasterfrom
bugfix/generate-homepage-with-locale
Dec 2, 2020
Merged

Fix homepage link generation, generate fallbacks as relative unless canonical#2207
SvanteRichter merged 1 commit intomasterfrom
bugfix/generate-homepage-with-locale

Conversation

@SvanteRichter
Copy link
Copy Markdown
Contributor

@SvanteRichter SvanteRichter commented Dec 2, 2020

This fixes an issue I had where the current locale was not picked up by homepage link generation.

Along the way I noticed that the fallback link generation ("Just use the current URL") always generated canonical links which sometimes led to links like "https://domain.tld/https://domain.tld" because it is used as a argument to setPath in getLink.

Copy link
Copy Markdown
Member

@I-Valchev I-Valchev left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks @SahAssar 👍

@SvanteRichter SvanteRichter merged commit 9f8eec4 into master Dec 2, 2020
@SvanteRichter SvanteRichter deleted the bugfix/generate-homepage-with-locale branch December 2, 2020 12:24
@I-Valchev
Copy link
Copy Markdown
Member

And merged into 4.1 too.

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.

2 participants