-
Notifications
You must be signed in to change notification settings - Fork 226
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
Create redirection on post title change #108
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a published blogpost is edited via
./bb.sh edit
and the title is changed, the post URL, which was associated with the old title, is lost.Bashblog should ask the user if they would like to create a redirection, then create a simple HTML file with both a javascript redirection to the new URL and a link for those who have Javascript disabled.
Another trivial option is to add an .htaccess entry, however that is httpd-dependent and other httpd servers may ignore it. Since bashblog is platform agnostic, the best option, even if not 100% transparent, is the javascript+link redirection.
The text was updated successfully, but these errors were encountered: