When creating the first hostgroup from the welcome page, submit does not redirect back to the hostgroups index page due to incorrect referer being stored in the session `redirect_path` value. This is similar to the fix in 03a6981cd, but for pages that use the `SetRedirectionPath` concern to control their form redirections.
Related issues
Bug #33637: After creating new host group from help page, page doesn't redirect to main landing page.
Fixes #33637 - Correctly redirect hostgroup create page
When creating the first hostgroup from the welcome page, submit does not
redirect back to the hostgroups index page due to incorrect referer
being stored in the session `redirect_path` value. This is similar to
the fix in 03a6981cd, but for pages that use the `SetRedirectionPath`
concern to control their form redirections.