Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support canonicalizing URLs for SEO friendliness #44

Open
knewter opened this issue Mar 17, 2017 · 1 comment
Open

Support canonicalizing URLs for SEO friendliness #44

knewter opened this issue Mar 17, 2017 · 1 comment

Comments

@knewter
Copy link
Contributor

knewter commented Mar 17, 2017

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"

@agustif
Copy link

agustif commented Apr 4, 2017

Hi I would like to help with this.

I've read a couple of examples
HashRocket's tilex: blogpost commit

Elixircasts: Video/Code Example

Both lack IDs, I'm guessing we want to use a hash or id on the seo-friendly url for resilency to edits/updates of slug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants