mkdocs / mkdocs-redirects

Open source plugin for Mkdocs page redirects
MIT License
176 stars 25 forks source link

Remove all suffixes from filename and make it compatible with i18n plugins. #44

Closed hhslepicka closed 1 year ago

hhslepicka commented 1 year ago

Hi,

Thank you for this great plugin. This PR addresses the issue described at #33 in which the use of this plugin along with the i18n one causes the redirects to stop working due to how the files are named page.langcode.md instead of page.md.

Closes #33

oprypin commented 1 year ago

I'm afraid this idea cannot work. People could just name their files with dots in names, now they can't...

hhslepicka commented 1 year ago

Testing here I also realized another issue... The pages are not generated for every language so the redirection only really works for the main language.

In any case, I will put up a small project which can demonstrate this issue as you requested.

hhslepicka commented 1 year ago

@oprypin what about this idea here:

If that would be a more acceptable solution I can work on that.