🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2022-09-10 2:35:00.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2022-09-10 2:35:00.0 +01:00:00
commit
804e9d25fe8917ab36a608bd6d5feedda722bc2e [patch]
tree
e65fa0e3b2cd26c5d9f90a6ecb764de85cc140f0
parent
1ad13c47a3def887e8aa1f83dbbf66d01c41684a
download
804e9d25fe8917ab36a608bd6d5feedda722bc2e.tar.gz

Make /organisations redirect replaceState so back works



Diff

 chartered-frontend/src/routes/(authed)/organisations/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chartered-frontend/src/routes/(authed)/organisations/+page.svelte b/chartered-frontend/src/routes/(authed)/organisations/+page.svelte
index a5e37e2..ae94e7d 100644
--- a/chartered-frontend/src/routes/(authed)/organisations/+page.svelte
+++ a/chartered-frontend/src/routes/(authed)/organisations/+page.svelte
@@ -1,6 +1,6 @@
<script type="typescript">
    import { goto } from '$app/navigation';

    // redirect to list view
    goto('/organisations/list');
    goto('/organisations/list', { replaceState: true });
</script>