Skip to content

extract_path truncates the path

Created by: flisky

Hi,

Please take a look at extract_ref, it truncates all the project name from URL even the path contains the name, which I don't think it's a desired behavior.

Maybe something like this -

input.gsub!(/^\/#{@project.path_with_namespace}/, "")

Thanks!