Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Implementing URL slugs for posts in sidebar #171

Closed evgip closed 4 years ago

evgip commented 4 years ago

In the sidebar "Top posts in the last 24 hours" - url for posts, similarly (I think) it is necessary to do it in full paths. We provide many options to the search engine.

/@{config.site.sub_prefix}/@{post['sub']}/@{post['pid']}/@{func.slugify(post['title'])}
Polsaker commented 4 years ago

I don't think this is really necessary since we're instantly redirecting the slugless URL to the correct one immediately after

evgip commented 4 years ago

The search engine shows the entry point and shows the redirect in the reports. I think not to force her to do unnecessary work if the changes themselves (from our side) are minimal.

redirect