Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2824a725
Commit
2824a725
authored
Mar 11, 2018
by
Jan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manually escape '#' when building relative uris, fixes #42459
parent
afd2d381
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/fix-42459---in-branch.yml
changelogs/unreleased/fix-42459---in-branch.yml
+5
-0
lib/banzai/filter/relative_link_filter.rb
lib/banzai/filter/relative_link_filter.rb
+1
-1
No files found.
changelogs/unreleased/fix-42459---in-branch.yml
0 → 100644
View file @
2824a725
---
title
:
Fix relative uri when "#" is in branch name
merge_request
:
author
:
Jan
type
:
fixed
lib/banzai/filter/relative_link_filter.rb
View file @
2824a725
...
...
@@ -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
(
'/'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment