aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/SessionController.cs
diff options
context:
space:
mode:
authorMatt Goldspink <mattgoldspink1@gmail.com>2023-01-23 08:44:23 -0800
committerMatt Goldspink <mattgoldspink1@gmail.com>2023-01-23 08:44:23 -0800
commitf1f7541069eabd5234bb03676f0728ddb2a09ef7 (patch)
treedcd78fb19f7d3d2535cb829f037228ac1c778267 /src/slskd/Core/API/Controllers/SessionController.cs
parent31fb7f8baefbbfc478838137e0321b6e49ad78a2 (diff)
downloadslskd-f1f7541069eabd5234bb03676f0728ddb2a09ef7.tar.gz
Fixing #555 to allow browser reload to stay on the same page.
There were 2 issues here: 1. The Redirect in App.js seems to be being hit on reload always and would always force a redirect. I tried googling but couldn't find a good answer why and how to workaround it, so I've just excluded our known paths from that redirect. 2. Even after this in Searches.js there's a race condition with the component being connected and starting to process the searchId, but the searches haven't been set yet, so it assumes it's invalid and resets to /searches. So I've swapped the order in onUpdate and that seems to fix it with no side effects.
Diffstat (limited to 'src/slskd/Core/API/Controllers/SessionController.cs')
0 files changed, 0 insertions, 0 deletions