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: /banned Nav and Foooter links go to correct domain #1899

Merged
merged 4 commits into from
Jan 18, 2025

Conversation

6TELOIV
Copy link
Contributor

@6TELOIV 6TELOIV commented Jan 15, 2025

Fixes #1898

/banned is unique like /app.dub.co/(share)/share/[dashboardId]/page.tsx in that it is on a specific domain but does not have a [domain] in its path. This means that the Nav and NavMobile will assume it's on dub.co and use links relative to the current domain, when in reality it needs to specify dub.co.

This is fixed by manually specifying that the domain is not dub.co and instead is dub.sh with staticDomain="dub.sh"

Fixes dubinc#1898

`/banned` is unique like [`/app.dub.co/(share)/share/[dashboardId]/page.tsx`](https://github.com/dubinc/dub/blob/main/apps/web/app/app.dub.co/(share)/share/%5BdashboardId%5D/page.tsx) in that it is on a specific domain but does not have a `[domain]` in its path. This means that the `Nav` and `NavMobile` will assume it's on `dub.co` and use links relative to the current domain, when in reality it needs to specify `dub.co`.

This is fixed by manually specifying that the domain is not `dub.co` and instead is `dub.sh` with `staticDomain="dub.sh"`
Copy link

vercel bot commented Jan 15, 2025

@6TELOIV is attempting to deploy a commit to the Dub Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Jan 15, 2025

CLA assistant check
All committers have signed the CLA.

Same as previous commit, but for Footer
@6TELOIV 6TELOIV changed the title fix: /banned Nav links go to correct domain fix: /banned Nav and Foooter links go to correct domain Jan 15, 2025
@steven-tey steven-tey merged commit ac7321d into dubinc:main Jan 18, 2025
3 of 4 checks passed
@steven-tey
Copy link
Collaborator

@6TELOIV fantastic analysis and great fix, thank you! Just merged!

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.

Links from /banned route don't go to the correct destination
3 participants