Snippets: Redirected to invalid URL after cancellation
Summary
After clicking "Cancel" upon creation of a Snippet, the user is redirected to an invalid URL.
For example:
https://gitlab.com/ddavison/sockpuppet-test/-/snippets/ddavison/sockpuppet-test/-/snippets
instead of ...
Steps to reproduce
- Navigate to a Project
- Click "Snippets" from the Project menu
- Click "New Snippet" button
- Click "Cancel"
- Confirm navigation away from New Snippet page
Example Project
https://gitlab.com/ddavison/sockpuppet-test/
What is the current bug behavior?
The URL redirects to https://gitlab.com/ddavison/sockpuppet-test/-/snippets/ddavison/sockpuppet-test/-/snippets
instead of https://gitlab.com/ddavison/sockpuppet-test/-/snippets (It appears to duplicate the path)
What is the expected correct behavior?
Redirection goes to /<user_or_group>/<project>/-/snippets
Output of checks
This bug happens on GitLab.com