jingo icon indicating copy to clipboard operation
jingo copied to clipboard

Page redirection

Open FranklinYu opened this issue 6 years ago • 2 comments

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.

FranklinYu avatar Dec 24 '18 17:12 FranklinYu

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 avatar Mar 08 '19 14:03 claudioc

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.

FranklinYu avatar Mar 08 '19 15:03 FranklinYu