binary-coffee-dev / dcs-blog

Our own blog for the community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow users to update the article route name [backend]

wil92 opened this issue · comments

Description

The functionality should allow changing the article name. This will fix the legacy names used when other users share an article and the article change its name.

Note

  • Create a history table (post_name_history) with the all articles name saved, to avoid broken links in the future
  • If the user updates the article name, the old name is saved in the post_name_history
  • When an article is requested by name, we should search it in the list of articles and if it didn't exist, then we should search in the history table