coyotte508 HF staff commited on
Commit
1bba900
1 Parent(s): 833fd87

🐛 Fix redirect after delete

Browse files
Files changed (1) hide show
  1. src/routes/+layout.svelte +1 -1
src/routes/+layout.svelte CHANGED
@@ -69,7 +69,7 @@
69
  if ($page.params.id !== id) {
70
  await invalidateAll();
71
  } else {
72
- await goto(`/`, { invalidateAll: true });
73
  }
74
  } catch (err) {
75
  console.error(err);
 
69
  if ($page.params.id !== id) {
70
  await invalidateAll();
71
  } else {
72
+ await goto(base || "/", { invalidateAll: true });
73
  }
74
  } catch (err) {
75
  console.error(err);