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

[Bug]: Username Case Sensitivity and Automatic Redirection for Link Uniformity #48

Open
2 tasks done
PriyansuMaurya opened this issue Sep 11, 2023 · 3 comments
Open
2 tasks done
Assignees
Labels
enhancement New feature or request feature new feature you'd like to see in the application good first issue Good for newcomers

Comments

@PriyansuMaurya
Copy link
Contributor

Description

When a user visits https://librelinks.vercel.app/Priyanshu, it should automatically redirect them to https://librelinks.vercel.app/priyanshu. Additionally, the system should enforce the rule that usernames cannot contain capital letters, as usernames are treated as links.

image

For example, on GitHub, https://github.com/PriyansuMaurya and https://github.com/priyansumaurya both lead to the same profile.

Screenshots (if applicable)

image
image

Affected Browser

Microsoft Edge

Checklist

  • Checked for similar issues
  • Willing to work on this issue (optional)
@urdadx
Copy link
Owner

urdadx commented Sep 24, 2023

Can you brief me on how you are going to implement this feature?

@PriyansuMaurya
Copy link
Contributor Author

There are couple of things we could do

  1. Force users to type username in small letters
  2. If a request is made on https://librelinks.vercel.app/Priyanshu we should redirect it to https://librelinks.vercel.app/priyanshu.

@urdadx urdadx added enhancement New feature or request good first issue Good for newcomers feature new feature you'd like to see in the application labels Oct 13, 2023
@asyavee
Copy link

asyavee commented Dec 15, 2023

Or you can simply make a middleware that transforms the text and/or rewrites urls, without redirecting or forcing users to do anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature new feature you'd like to see in the application good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants