1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🔧 Change the login route to l/logged-in

This commit is contained in:
Steffo 2021-10-15 18:33:01 +02:00 committed by Stefano Pigozzi
parent 637ef3a92e
commit 5c88679689
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ export function AuthorizationLogoutBox(): JSX.Element {
</p> </p>
<Form> <Form>
<Form.Row> <Form.Row>
<Form.Button onClick={() => navigate("l/")}> <Form.Button onClick={() => navigate("l/logged-in/")}>
Continue to Sophon Continue to Sophon
</Form.Button> </Form.Button>
</Form.Row> </Form.Row>

View file

@ -59,7 +59,7 @@ export function parsePath(path: string): ParsedPath {
result.researchGroup = path.match(/[/]g[/]([A-Za-z0-9_-]+)/)?.[1] result.researchGroup = path.match(/[/]g[/]([A-Za-z0-9_-]+)/)?.[1]
result.researchProject = path.match(/[/]p[/]([A-Za-z0-9_-]+)/)?.[1] result.researchProject = path.match(/[/]p[/]([A-Za-z0-9_-]+)/)?.[1]
result.notebook = path.match(/[/]n[/]([A-Za-z0-9_-]+)/)?.[1] result.notebook = path.match(/[/]n[/]([A-Za-z0-9_-]+)/)?.[1]
result.loggedIn = Boolean(path.match(/[/]l[/]/)) result.loggedIn = Boolean(path.match(/[/]l[/]logged-in/))
if(result.instance) { if(result.instance) {
result.count += 1 result.count += 1