-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Support permalinks configured in head matter #101
Comments
What does "permalink" mean in this context? If it's setting the URL that a page is configured at, like I described over here, then a huge 👍 from me. |
Hi @steveklabnik. Yes, like allowing the actual link that is navigated to be different than our default. e.g.,
|
Implemented in Example ---
id: permalink
title: Permalink
permalink: :baseUrl/:docsUrl/:langPart/:versionPart/my/custom/link
---
Lorem ipsum |
How can one map multiple URLs to the same page? I've tried multiple variations of the permalink syntax trying to get an endpoint like example.com/productA/latest to also map to example.com/productA/1.0.2 but I can't seem to make it work. Looking for this approach as we have multiple products we need to version and each should be discoverable via a /latest page. |
Docusaurus is only responsible for building static html files. It is possible to use our client-side redirect plugin to emit extra files at -- If you do not want a redirect: you can also serve the same content from 2 separate locations. For example, if you run as a post-build step Your pages will then become available at 2 distinct locations: For both pages, the canonical SEO URL of your page will remain |
Thank you Sébastien! Being partial to the redirect approach, I've tried it to half success. Seems there's a war between Docusaurus and Render.com to complete the redirection so the browser errors, saying:
Should I open a new issue for this or is there a known solution for [partially] disabling Docusaurus's internal redirect to 404, which I think is the main culprit? Thanks in advance |
The only responsibility of Docusaurus is to build static files. Is Docusaurus producing static files that you do not expect it to produce? If the static files are ok, then the bug is either in Render or your usage of Render (I can't help much on that, I don't use that host myself) If you want my help, you will need to provide a built folder with the html files, a live deployment of those html files on render, what you expect, and the problem you see. If I can't inspect the static files, and see the problem myself, it's very hard to give any help. |
I got my solution here :) Thanks again for all your help!! |
Feature Request:
Allow defining a permalink in post and doc markdown frontmatter.
The text was updated successfully, but these errors were encountered: