kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 193 forks source link

Trailing slashes - what about SEO? #547

Open dnish opened 8 years ago

dnish commented 8 years ago

Hi, we've moved over from Iron:Router to Flow Router and running now into an issue that we had with Iron:Router before. According to Google SEO guidelines, "/categories" and "/categories/" are 2 different urls which means they will produce duplicate content. Is there any way to force Flow Router to redirect a url like "/categories" to "/categories/"? My current solution for this problem is to set the canonical tag on every page and add a slash to the end of the url. But I think the best thing would be if we can handle this behavior on the router side?