Commit 2824a725 authored by Jan's avatar Jan

Manually escape '#' when building relative uris, fixes #42459

parent afd2d381
---
title: Fix relative uri when "#" is in branch name
merge_request:
author: Jan
type: fixed
......@@ -84,7 +84,7 @@ module Banzai
relative_url_root,
project.full_path,
uri_type(file_path),
Addressable::URI.escape(ref),
Addressable::URI.escape(ref).gsub('#', '%23'),
Addressable::URI.escape(file_path)
].compact.join('/').squeeze('/').chomp('/')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment