{# Success toast that redirects after a short delay. Single-shot across stacked toasts via a window-level guard so two simultaneous toasts don't race two navigations. redirect_to is restricted to path-relative URLs (/foo) — refuses `javascript:` schemes and absolute URLs so a future caller that threads user input through `redirect_to` can't end up with a one-line DOM XSS. #}