cfenollosa / bashblog

A single Bash script to create blogs. Download, run, write, done!
1.64k stars 225 forks source link

Create redirection on post title change #108

Open cfenollosa opened 8 years ago

cfenollosa commented 8 years ago

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.

Natfan commented 7 years ago

Just to add, #128 is sort of relevant to this.

cfenollosa commented 7 years ago

Yes, thanks. This issue deals with problems generated inside bashblog, while #128 deals with external files. I've closed #128 but I'll leave this one open and think if it is worth dealing with this one (probably with softlinks)