firestormforum/firestorm

Support canonicalizing URLs for SEO friendliness

开放

#44 创建于 2017年3月17日

 (1 条评论) (0 个反应) (0 位负责人)Elixir (93 个派生)batch import
enhancementhelp wantedtiny

仓库指标

星标
 (967 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

From a slack discussion:

dpehrson [9:54 AM] @josh If you go that direction, make sure you include <link rel="canonical"/> tags on all those pages, and better yet force 301 redirects on each of those :show actions to ensure people get redirected to the canonical URL.

We need something that knows the canonical URL for a given controller action and redirects to it - that way if you access a category by ID, and there's a usable slug, we can redirect to the sluggy version. If we do that we don't need link rel="canonical"

贡献者指南