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

fix: remove v1 profile suffix from url #37

Merged
merged 1 commit into from
Nov 13, 2023
Merged

fix: remove v1 profile suffix from url #37

merged 1 commit into from
Nov 13, 2023

Conversation

krzysu
Copy link
Contributor

@krzysu krzysu commented Nov 13, 2023

No description provided.

Copy link

height bot commented Nov 13, 2023

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link

vercel bot commented Nov 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lens-share ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2023 9:56am


if (hasV1Suffix(params.localname)) {
redirect(`/u/${params.namespace}/${removeV1Suffix(params.localname)}`);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need eager return here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there is no code executed after the redirect in this condition, so I don't think it is needed.

Screenshot 2023-11-13 at 13 41 03

@krzysu krzysu merged commit f8e0b9d into develop Nov 13, 2023
4 checks passed
@krzysu krzysu deleted the remove-v1-suffix branch November 13, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants