We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfc3af8 commit eda11c2Copy full SHA for eda11c2
components/dashboard/src/App.tsx
@@ -48,11 +48,12 @@ function App() {
48
window.location.reload(true);
49
}
50
}, false);
51
- const hash = window.location.hash.replace(/^[#/]+/, '');
+
52
+ const hash = getURLHash();
53
if (window.location.pathname === '/' && hash !== '') {
54
return <CreateWorkspace contextUrl={hash} gitpodService={gitpodService}/>;
55
- if (/\/start\/?/.test(window.location.pathname)) {
56
+ if (/\/start\/?/.test(window.location.pathname) && hash !== '') {
57
return <StartWorkspace workspaceId={hash} gitpodService={gitpodService}/>;
58
59
@@ -85,6 +86,10 @@ function App() {
85
86
);
87
88
89
+function getURLHash () {
90
+ return window.location.hash.replace(/^[#/]+/, '');
91
+}
92
93
const renderMenu = () => (
94
<Menu left={[
95
{
0 commit comments