-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Immediately redirect to www.gitpod.io for any website slugs. #5531
Conversation
6cadfed
to
1ead206
Compare
Thanks for fixing this particular paper cut that has been very frustrating 🧡 |
1ead206
to
da29575
Compare
/werft run 👍 started the job as gitpod-build-se-website-redirect.4 |
/werft run 👍 started the job as gitpod-build-se-website-redirect.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Approving to unblock merging this but holding for one minor comment which could be resolved in a follow up issue. 🏀
/hold
components/dashboard/src/App.tsx
Outdated
@@ -53,6 +53,15 @@ function isGitpodIo() { | |||
return window.location.hostname === 'gitpod.io' || window.location.hostname === 'gitpod-staging.com' || window.location.hostname.endsWith('gitpod-dev.com') || window.location.hostname.endsWith('gitpod-io-dev.com') | |||
} | |||
|
|||
function isWebsiteSlug(pathName: string) { | |||
const slugs = ['chat', 'features', 'screencasts', 'blog', 'docs', 'changelog', 'pricing', 'self-hosted', 'gitpod-vs-github-codespaces', 'support', 'about', 'careers', 'contact', 'media-kit', 'imprint', 'terms', 'privacy'] | |||
return slugs.some(slug => pathName.startsWith('/' + slug + '/')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Should we also redirect URLs without a trailing /
? For example, /changelog/
v. /changelog
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change: add /values as well please 🧡
Copying/pasting the link from notion is getting old.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gtsiolis Associated issue: #5452 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: f5730f903d6c8d322b963bcb597c1c5542cb0a68
|
da29575
to
31cce49
Compare
New changes are detected. LGTM label has been removed. |
31cce49
to
8f02c2b
Compare
Works like a charm! 🔮 Removing hold! |
Noticed that when having a team name that matches these URLs we also redirect to the website instead of For example, try creating team |
fixes #5452