Redirect user to requests page after successful media request submission

js->ts
This commit is contained in:
2025-12-24 09:55:08 -05:00
parent bb71f662ed
commit 256d5d9c7f
5 changed files with 186 additions and 1389 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -994,6 +994,10 @@ export default function MediaRequestForm() {
const data = await response.json();
toast.success(`Request submitted! (${allSelectedIds.length} tracks)`);
// Send the user to the requests page to monitor progress
if (typeof window !== "undefined") {
window.location.href = "/TRip/requests";
}
} catch (err) {
console.error(err);
toast.error("Failed to submit request.");