fix: match public routes with the public routes on prod

This commit is contained in:
Spectralitree 2021-12-12 23:09:28 +01:00
parent 2579875c6a
commit 6197bf03cc
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
<Route path="/"><Home /></Route>
<Route path="dash"><Dash /></Route>
<Route path="settings"><Settings /></Route>
<Route path="public/*">
<Route path="profile/*">
<Route path="/"><Public /></Route>
<Route path = "s/:id">
<System />

View File

@ -54,7 +54,7 @@ import { get } from 'svelte/store';
<NavLink href="/templates">Templates</NavLink>
</NavItem>
<NavItem>
<NavLink href="/public">Public</NavLink>
<NavLink href="/profile">Public</NavLink>
</NavItem>
</Nav>
</Collapse>

View File

@ -25,7 +25,7 @@
</Col>
<Col xs={12} lg={3} class="my-2 d-flex">
{#if sysInput !== ""}
<Link style="text-decoration: none; flex: 1 0 auto" to="/public/s/{sysInput.toLowerCase().trim()}"><Button class="w-100" color="primary">View</Button></Link>
<Link style="text-decoration: none; flex: 1 0 auto" to="/profile/s/{sysInput.toLowerCase().trim()}"><Button class="w-100" color="primary">View</Button></Link>
{:else}
<Button class="w-100" disabled color="primary">View</Button>
{/if}