You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here you go, https://github.com/kamilkrzyskow/gmc/commits/redirect-plugin?since=2023-02-24 that was my previous approach with another hook and old_nav meta list of old paths. However, I decided against it because moving a whole directory of files into another location requires modifying all of those files, and this just sullies the Git Blame imo, and is rather tedious to do (trust me, I took it till the end and modified 40 files by hand).
The idea came from the solution here squidfunk/mkdocs-material#3758 the difference here, which is VERY important is that the ContextID is static, possibly managed by some outside tooling and database, so the files can move however they want and the redirection will always point to the correct path, this doesn't go well with manually readjusting the "ContextID" equivalent after each move.
Personally, I feel like it could be a nice feature to allow defining redirects in a file's yaml frontmatter.
As an example:
The benefits I see:
It's just a random idea that came to mind.
The text was updated successfully, but these errors were encountered: