-
Notifications
You must be signed in to change notification settings - Fork 62
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
Custom permalinks per post with different languages and jekyll-redirect-from #224
Comments
hello @idachev-shipcars 👋 Unfortunately the design of polyglot is meant to coordinate the alternate language sites namespaced under that language path, so the permalink of a bulgarian page will start with However
and your existing links to That said, I can see an improvement to be made in polyglot that could better support top-level redirects for custom language permalinks with redirects. I hope this suggestion helps. Thank you for the feedback! |
Hello @untra I tested this, and it does not work if the pages are linked with If I remove this link, the So, I need some fixes :) Unfortunately, all redirects that I put in |
Ok, here are some updates for those who end up here. I will proceed with the following fixes:
The key point is checking for ':title' or is empty. |
Hello, I want to set a custom permalink for my posts here with examples:
My EN page:
My BG page:
As you can see, these two posts are linked with the
page_id
.And what I expect is to have an English link
https://mysite/hf-power-amplifier-1kw/
and a Bulgarian linkhttps://mysite/hf-усилвател-1kw/
.But the second link is redirected to
https://mysite/hf-power-amplifier-1kw/
with the Polyglot logic forjekyll-redirect-from
.My correct Bulgarian page is generated at
https://mysite/bg/hf-усилвател-1kw/
, but I do not want this. I'm expecting that if I say custompermalink: /hf-усилвател-1kw/
, it will be generated ashttps://mysite/hf-усилвател-1kw/
.Do you have any idea how to handle this?
I'm migrating from WordPress to Jekyll, and this is stopping me as I have a lot of established good SEO with Bulgarian URLs.
The text was updated successfully, but these errors were encountered: