Skip to content

Commit c146759

Browse files
ghuntleyroboquat
authored andcommitted
feat(dashboard): add more website redirect slugs
1 parent 63ba6d0 commit c146759

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

components/dashboard/src/App.tsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,29 @@ function isGitpodIo() {
5858
}
5959

6060
function isWebsiteSlug(pathName: string) {
61-
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']
61+
const slugs = [
62+
'about',
63+
'blog',
64+
'careers',
65+
'changelog',
66+
'chat',
67+
'code-of-conduct',
68+
'contact',
69+
'docs',
70+
'features',
71+
'for',
72+
'gitpod-vs-github-codespaces',
73+
'imprint',
74+
'media-kit',
75+
'pricing',
76+
'privacy',
77+
'security',
78+
'screencasts',
79+
'self-hosted',
80+
'support',
81+
'terms',
82+
'values'
83+
]
6284
return slugs.some(slug => pathName.startsWith('/' + slug + '/') || pathName === ('/' + slug));
6385
}
6486

0 commit comments

Comments
 (0)