mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🔧 Change the login route to l/logged-in
This commit is contained in:
parent
64f9cd6a7c
commit
7a28a6aae9
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ export function AuthorizationLogoutBox(): JSX.Element {
|
|||
</p>
|
||||
<Form>
|
||||
<Form.Row>
|
||||
<Form.Button onClick={() => navigate("l/")}>
|
||||
<Form.Button onClick={() => navigate("l/logged-in/")}>
|
||||
Continue to Sophon
|
||||
</Form.Button>
|
||||
</Form.Row>
|
||||
|
|
|
@ -59,7 +59,7 @@ export function parsePath(path: string): ParsedPath {
|
|||
result.researchGroup = path.match(/[/]g[/]([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.loggedIn = Boolean(path.match(/[/]l[/]/))
|
||||
result.loggedIn = Boolean(path.match(/[/]l[/]logged-in/))
|
||||
|
||||
if(result.instance) {
|
||||
result.count += 1
|
||||
|
|
Loading…
Reference in a new issue