Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

SvanteRichter
Copy link
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
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
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