Use resolve() for all internal hrefs and goto paths to ensure correct

routing
This commit is contained in:
2025-11-12 23:18:41 -03:00
parent a2451baafc
commit bd574aedc0
32 changed files with 168 additions and 136 deletions

View File

@@ -2,6 +2,7 @@
import { useConvexClient } from 'convex-svelte';
import { api } from '@sgse-app/backend/convex/_generated/api';
import { resolve } from '$app/paths';
const convex = useConvexClient();
let matricula = $state('');
@@ -88,7 +89,7 @@
<!-- Breadcrumbs -->
<div class="breadcrumbs mb-6 text-sm">
<ul>
<li><a href="/">Dashboard</a></li>
<li><a href={resolve('/')}>Dashboard</a></li>
<li>Esqueci Minha Senha</li>
</ul>
</div>
@@ -204,7 +205,7 @@
<!-- Botões -->
<div class="mt-8 flex justify-end gap-4">
<a href="/" class="btn" class:btn-disabled={carregando}>
<a href={resolve('/')} class="btn" class:btn-disabled={carregando}>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
@@ -273,7 +274,7 @@
contato em breve com as instruções para resetar sua senha.
</p>
<div class="flex justify-center gap-4">
<a href="/" class="btn btn-primary">
<a href={resolve('/')} class="btn btn-primary">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"