Skip to content

Commit 4e131e2

Browse files
iQQBotroboquat
authored andcommitted
[dashboard]Fixes Project URLs with dots are broken
1 parent b1a73b3 commit 4e131e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function App() {
371371
toRender = <CreateWorkspace contextUrl={hash} />;
372372
} else if (isWsStart) {
373373
toRender = <StartWorkspace workspaceId={hash} />;
374-
} else if (/.+?\..+?\/.+?/i.test(window.location.pathname)) {
374+
} else if (/^(github|gitlab)\.com\/.+?/i.test(window.location.pathname)) {
375375
let url = new URL(window.location.href)
376376
url.hash = url.pathname
377377
url.pathname = '/'

0 commit comments

Comments
 (0)