Remove all suffixes from filename and make it compatible with i18n plugins.
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
I'm afraid this idea cannot work. People could just name their files with dots in names, now they can't...
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.
@oprypin what about this idea here:
- Add a new property to highlight that i18n is being used
- If the file is a markdown file and after removing the
.mdit still has another.xxxxand the new property istrue, remove the language suffix and create the file on the proper language directory.
If that would be a more acceptable solution I can work on that.