Skip to content
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

Page redirection #252

Open
FranklinYu opened this issue Dec 24, 2018 · 2 comments
Open

Page redirection #252

FranklinYu opened this issue Dec 24, 2018 · 2 comments

Comments

@FranklinYu
Copy link

This is a feature request.

When we rename a page, previous link to the old URL would be dead. It would be great if we can edit the old page with things like this:

#REDIRECT [[new page]]

And it automatically redirects visitors to the new page.

@claudioc
Copy link
Owner

claudioc commented Mar 8, 2019

Yes, that would be a great addition, but Jingo doesn't have a database so it's hard to image the correct place to save those redirects... maybe embedding the information directly in the page itself? I don't know. I will leave it open for Jingo 2 :)

@claudioc claudioc closed this as completed Mar 8, 2019
@claudioc claudioc reopened this Mar 8, 2019
@FranklinYu
Copy link
Author

I would suggest to save it as normal file. When Jingo render it, if the file contains the magic words, return a redirection instead of “200 OK” rendering the words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants