-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Medium
-
None
-
Affects Version/s: 3.10.2
-
Component/s: Rendering - Markdown Syntax
-
None
I have a Markdown document with relative links:
# <a name='foo'>section foo</a> #
lorem ipsum foo foo foo
...
See the [foo](#foo) section for more information.
The #foo relative link doesn't work properly. The renderer for -Stash-Bitbucket Server adds a copy of the query string to it, so instead of getting this as a result in HTML:
See the <a href="#foo">foo</a> section for more information.
if I am browsing another branch rather than the master, I get this (fragment first, then query string):
See the <a href="#foo?at=refs%2Fheads%2Ffeature%foodoc">foo</a> section for more information.
This is wrong. Fragments should be the last thing in a URL, and specifying a query string isn't necessary if it's a fragment-only reference.
- duplicates
-
BSERV-7260 Anchor links in markdown broken when not on the default branch
-
- Closed
-