Skip to content

Commit

Permalink
feat(dashboard): add more website redirect slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuntley authored and roboquat committed Oct 27, 2021
1 parent 63ba6d0 commit c146759
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion components/dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,29 @@ function isGitpodIo() {
}

function isWebsiteSlug(pathName: string) {
const slugs = ['chat', 'code-of-conduct', 'features', 'screencasts', 'blog', 'docs', 'changelog', 'pricing', 'self-hosted', 'gitpod-vs-github-codespaces', 'support', 'about', 'careers', 'contact', 'media-kit', 'imprint', 'terms', 'privacy', 'values']
const slugs = [
'about',
'blog',
'careers',
'changelog',
'chat',
'code-of-conduct',
'contact',
'docs',
'features',
'for',
'gitpod-vs-github-codespaces',
'imprint',
'media-kit',
'pricing',
'privacy',
'security',
'screencasts',
'self-hosted',
'support',
'terms',
'values'
]
return slugs.some(slug => pathName.startsWith('/' + slug + '/') || pathName === ('/' + slug));
}

Expand Down

0 comments on commit c146759

Please sign in to comment.