Skip to content

Web IDE doesn't work for branches with slashes

Presumably similar to #45412 (closed), Web IDE currently doesn't work when starting from a branch with a slash in it, eg. "features/test"

Specifically, I start from this page and with the "Web IDE" button:
https://gitlab.com/andrewleech/gitlab-runner/tree/feature/docker-executor-windows

It navigates to:
https://gitlab.com/-/ide/project/andrewleech/gitlab-runner/edit/feature/docker-executor-windows/

And has a red error bar: Error loading branch data. Please try again

If I manually fix the URL to escape the "/" it comes up fine:
https://gitlab.com/-/ide/project/andrewleech/gitlab-runner/edit/feature%2Fdocker-executor-windows/

However any link in the ide (such as navigating the file free) tried to go to a url without the escape again and fails.

Output of checks

This bug happens on GitLab.com

https://gitlab.com/help : GitLab Enterprise Edition 10.7.0-rc5-ee dbd0b5b7

Results of GitLab environment info

GitLab.com

Results of GitLab application Check

GitLab.com

Edited by Andrew Leech