Skip to content

new snippet from snippet view is broken when using selfhosted gitlab with relative URL

Summary

Using a selfhosted installation within a folder:

https://domain/gitlab/

viewing a snippet and clicking new snippet is not working, the folder is missing in the url.

https://domain/gitlab/snippets/1 -> https://domain/snippets/new

Steps to reproduce

Create a snippet and try to create from this page another snippet.

What is the current bug behavior?

wrong page

What is the expected correct behavior?

open the new snippet page

gitlab version

13.0.5-ee (260c6231)

Edited by Mark Fletcher