Mishig
commited on
Commit
•
bbbedb7
1
Parent(s):
2128ce0
[Fix] on cancel operations, preerve previous URL query params (#781)
Browse files
src/routes/assistant/[assistantId]/+page.svelte
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
|
16 |
afterNavigate(({ from }) => {
|
17 |
if (!from?.url.pathname.includes("settings")) {
|
18 |
-
previousPage = from?.url.
|
19 |
}
|
20 |
});
|
21 |
|
|
|
15 |
|
16 |
afterNavigate(({ from }) => {
|
17 |
if (!from?.url.pathname.includes("settings")) {
|
18 |
+
previousPage = from?.url.toString() || previousPage;
|
19 |
}
|
20 |
});
|
21 |
|
src/routes/settings/+layout.svelte
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
|
26 |
afterNavigate(({ from }) => {
|
27 |
if (!from?.url.pathname.includes("settings")) {
|
28 |
-
previousPage = from?.url.
|
29 |
}
|
30 |
});
|
31 |
|
|
|
25 |
|
26 |
afterNavigate(({ from }) => {
|
27 |
if (!from?.url.pathname.includes("settings")) {
|
28 |
+
previousPage = from?.url.toString() || previousPage;
|
29 |
}
|
30 |
});
|
31 |
|