File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ async function initialize () {
1616
1717 await step ( '[0] Get spaceKey from window.location' , ( ) => {
1818 let spaceKey = null
19- if ( config . isPlatform ) {
20- const wsPathPattern = / ^ \/ w s \/ ( [ ^ \/ ] + ) $ /
21- const match = wsPathPattern . exec ( urlPath )
22- if ( match ) spaceKey = match [ 1 ]
23- }
19+ const wsPathPattern = / ^ \/ w s \/ ( [ ^ \/ ] + ) \/ ? $ /
20+ const match = wsPathPattern . exec ( urlPath )
21+ if ( match ) spaceKey = match [ 1 ]
22+
2423 if ( ! spaceKey ) spaceKey = qs . parse ( window . location . hash . slice ( 1 ) ) . spaceKey
2524 if ( spaceKey ) config . spaceKey = spaceKey
2625 return true
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class WorkspaceList extends Component {
8686 < div className = 'workspace-name' > { ws . projectName } </ div >
8787 < div className = 'workspace-action' >
8888 < a className = 'btn btn-default'
89- href = { '/workspace.html#spaceKey=' + ws . spaceKey }
89+ href = { `/ws/ ${ ws . spaceKey } ` }
9090 onClick = { e => openWorkspace ( ws ) } > Open</ a >
9191 < button className = 'btn btn-danger'
9292 style = { { marginLeft : '4px' } }
You can’t perform that action at this time.
0 commit comments