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

Cleaner URLs for better SEO results #33

Closed
Ampferl opened this issue Feb 12, 2019 · 5 comments
Closed

Cleaner URLs for better SEO results #33

Ampferl opened this issue Feb 12, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ampferl
Copy link
Contributor

Ampferl commented Feb 12, 2019

For a simpler handling for users and a better SEO result, I would take for example the users: https://gorum.evortex.de/user/6
rather recommend a url structure in which instead of the user id the username is displayed: for example: https://gorum.evortex.de/user/Chaepy

This might also be a good idea for the threads / boards, but I would only add the title with slashes instead of spaces after slid id with slash. For Example: https://gorum.evortex.de/thread/2/Demo-Forum-deleted

@ltheinrich
Copy link
Owner

It would be better to use an URL like /user/:id/:name to keep URLs working even if the name is changed.

@ltheinrich ltheinrich self-assigned this Feb 12, 2019
@ltheinrich ltheinrich added the enhancement New feature or request label Feb 12, 2019
@NathanNr
Copy link
Contributor

Or use sth. like /user/:id-:name, and everything after the - will be ignored (maybe we want to add /user/:id/posts etc. later)

@ltheinrich
Copy link
Owner

It looks like the Angular Router can not handle paths like /user/:id-:name, so I'll implement the format /user/:id/:name. A user's posts site can be still added using a path like /user/posts/:id/:name.

@ltheinrich
Copy link
Owner

Implemented in b3320b4

@Ampferl
Copy link
Contributor Author

Ampferl commented Nov 27, 2019

Or use sth. like /user/:id-:name, and everything after the - will be ignored (maybe we want to add /user/:id/posts etc. later)

But it would be better if you could solve it this way:

  • /user/:id/:name/home
  • /user/:id/:name/posts
  • /user/:id/:name/contact
    ...

This will let you see who owns the page and Google will make it easier to find users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants