mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
fix: Temporary Chat toggle on a folder page drops the folder (#33456)
Turning Temporary Chat on or off on a folder's page, with the button at the top or with /temporary, sent you to the home page. The next chat was then not saved in the folder and did not get the folder's system prompt, default model or knowledge. You now stay on the folder page and only Temporary Chat switches. Fixes #33448
This commit is contained in:
parent
bd6277ec5c
commit
96c1cfca6e
2 changed files with 2 additions and 2 deletions
|
|
@ -608,7 +608,7 @@
|
|||
await temporaryChatEnabled.set(!$temporaryChatEnabled);
|
||||
}
|
||||
|
||||
if (location.pathname !== '/') {
|
||||
if (location.pathname !== '/' && !location.pathname.startsWith('/folders/')) {
|
||||
await goto('/');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@
|
|||
await temporaryChatEnabled.set(!$temporaryChatEnabled);
|
||||
}
|
||||
|
||||
if ($page.url.pathname !== '/') {
|
||||
if ($page.url.pathname !== '/' && !$page.url.pathname.startsWith('/folders/')) {
|
||||
await goto('/');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue