I have a form which filters articles based on tags. So a user may visit example.com/news
submit the tags to filter by (e.g. tag1, tag2) using post data, this reloads the page with the filtered articles but the same URL.
The following url will bring back the same articles: example.com/news/tag1+tag2
Both methods go through the same controller. I would like to make users who have filtered by tags using the form are redirected to example.com/news/tag1+tag2
url format.
What is the best way of doing this? Would it be to send all tag filter requests through a search controller and then create a redirect to example.com/news/tag1+tag2
?