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

[SEO] Meaningful slug for profile page, and other pages later on like job posts #234

Open
tommyttf opened this issue Nov 9, 2023 · 4 comments
Labels
help wanted Extra attention is needed P3 Priority : If no other issues can do, do this refactoring

Comments

@tommyttf
Copy link
Collaborator

tommyttf commented Nov 9, 2023

Now everyone's profile pages are with slug using the uuid, i.e. /profile/[uuid], which isn't a great thing for SEO

Reference: https://yoast.com/slug/

We may consider adding more meaningful things and keyword in the slug, simply can just use /profile/[username] like Linkedin

Same thing goes to post detail page if we want to create a separate detail page for more detail

This should be done ASAP to keep all of our links stable, and better for SEO ranking

@tommyttf tommyttf added P1 Priority: Important and should do it first help wanted Extra attention is needed refactoring labels Nov 9, 2023
@cyruscsc
Copy link
Collaborator

cyruscsc commented Nov 9, 2023

You've got a point, and I believe this will make the link more shareable.

Maybe we can use the username part of the email address by default. Then, at some time in the future, we can allow users to edit their custom urls in profile setting just like LinkedIn?

@Pjaijai
Copy link
Owner

Pjaijai commented Nov 9, 2023

Agger

@tommyttf
Copy link
Collaborator Author

tommyttf commented Nov 9, 2023

Better to ask user to input a username when register and make it permanent, otherwise the seo score of that link will be lost

e.g.

  1. original slug: /profile/tommyttf
  2. user change username: /profile/tommyttf0123
    then:
    /profile/tommyttf -> 404 but may already got some seo score during 1, huge damage to our site as it become 404
    /profile/tommyttf0123 -> a 'new' url to google, need to wait for google bot to crawl again

Although can set redirect and sth like <link rel="canonical" href="XXX">, this require extra handling in server

So now we should first ask user to fix their username

@Pjaijai
Copy link
Owner

Pjaijai commented Nov 9, 2023

Better to ask user to input a username when register and make it permanent, otherwise the seo score of that link will be lost

e.g.

  1. original slug: /profile/tommyttf
  2. user change username: /profile/tommyttf0123
    then:
    /profile/tommyttf -> 404 but may already got some seo score during 1, huge damage to our site as it become 404
    /profile/tommyttf0123 -> a 'new' url to google, need to wait for google bot to crawl again

Although can set redirect and sth like <link rel="canonical" href="XXX">, this require extra handling in server

So now we should first ask user to fix their username

Can do. Username is unique in db.

@Pjaijai Pjaijai added P3 Priority : If no other issues can do, do this and removed P1 Priority: Important and should do it first labels Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed P3 Priority : If no other issues can do, do this refactoring
Projects
None yet
Development

No branches or pull requests

3 participants