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

Change breadcrumb and print links to RelPermalink #1699

Merged

Conversation

fekete-robert
Copy link
Collaborator

@fekete-robert fekete-robert commented Oct 29, 2023

The breadcrumb links and the print metalink used Permalink instead of RelPermalink, causing them to always link to the full domain referenced in the baseurl of the build. Using relpermalink makes these links work without referencing the baseurl, so they work even in dev environments (for example, when the site is deployed in a local docker container).


Preview, e.g.: https://deploy-preview-1699--docsydocs.netlify.app/docs/get-started/docsy-as-module/

@chalin chalin mentioned this pull request Nov 10, 2023
21 tasks
@chalin
Copy link
Collaborator

chalin commented Nov 10, 2023

Nice! Something I've been wanting to fix for quite a while!

Were you able to confirm that breadcrumb links encoded as paths rather than full URLs won't break SEO etc.?

@chalin chalin force-pushed the print-and-breadcrumb-permalink-fix branch from 0eb08b4 to 33a67d5 Compare November 10, 2023 20:15
@fekete-robert
Copy link
Collaborator Author

fekete-robert commented Nov 10, 2023 via email

@chalin chalin force-pushed the print-and-breadcrumb-permalink-fix branch from 33a67d5 to b4e8225 Compare November 13, 2023 12:38
@chalin chalin force-pushed the print-and-breadcrumb-permalink-fix branch from b4e8225 to 60676aa Compare November 13, 2023 14:00
Copy link
Collaborator

@chalin chalin left a comment

Choose a reason for hiding this comment

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

I'm so glad to see this land, I've been wanting this fixed for a while now. Thanks @fekete-robert!

@chalin chalin linked an issue Nov 13, 2023 that may be closed by this pull request
@chalin chalin merged commit eaba498 into google:main Nov 13, 2023
5 checks passed
@fekete-robert
Copy link
Collaborator Author

Glad that I could help :)
I hope to take a look at the PR you mentioned me in by tomorrow.

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.

Breadcrumb links should be encoded as local path not external URLs
2 participants