Changing Branches fails using Edge 18
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "regression" or "bug" label.
For the Community Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug
For the Enterprise Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug
and verify the issue you're about to submit isn't a duplicate.
--->
### Summary
Switching branches on the repository view fails in Edge.
### Steps to reproduce
When on the main repository view, or when viewing the contents of a file, there is a drop-down box to switch branches. Switching to any other branch gives a 404 error from the server. This only happens (as far as I can tell) if you are using the Edge browser. I tested with Edge 18 on a VM.
### Example Project
I tested on this repo, gitlab-org/gitlab-ce, and one that we self-manage in our organization. I suspect it is not specific to the project, though.
### What is the current *bug* behavior?
User gets a 404 page. Kinda looks like it is trying to do a redirect, and maybe the URL got encoded wrong.
### What is the expected *correct* behavior?
Selected branch should be shown.
### Output of checks
This bug happens on GitLab.com
issue