-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.0, 5.1.1, 5.2.3, 5.8, 5.9.4, 5.10, 6.0.7, 6.1.4, 6.6.5, 6.7.3
-
10
-
Severity 2 - Major
-
3
-
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Information
Linking to anchors in Confluence 3.5 used to work fine with Space PDF Export (clicking on the link will automatically navigate to the part of page in PDF). But in 4.0, clicking on the link with anchors (in PDF) launches the browser instead, which navigates to the part of page (but in the browser, and not PDF). Links to the page itself (without anchors) works fine though.
Steps to Reproduce
- Create 2 pages named "Page A" and "Page B"
- Page A has this content (if inserted in Wiki Markup):
h3.Subsection h3.Subsubsection
- Page B links to Page A's Subsection and Subsubsection anchors:
[Page A#Subsubsection] [Page A#Subsection]
- Generate PDF Export (Notice that the links in Page B links to Page A's anchors by launching the browser instead of directly moving to the section within PDF as it normally does in Confluence 3.5)
Workaround
Instead of linking to the page's anchor, link to the page itself. This is not exactly a workaround, but it fixes the links (so that at least the link leads to the page in the PDF).
- is duplicated by
-
CONFSERVER-23366 Anchor links have inconsistent behaviour in space PDF exports
-
- Closed
-
-
CONFSERVER-25903 Anchors in links confuse the PDF renderer, causes them them open in web browser instead of jumping within the PDF
-
- Closed
-
-
CONFSERVER-57689 PDF export: Links are only converted to "in-file" links if they do not contain a hashtag
-
- Long Term Backlog
-
- relates to
-
CONFCLOUD-23324 Space PDF Export - links to page anchors does not work properly
-
- Closed
-
May I suggest you upgrade from iText 2.x to OpenPDF: https://github.com/LibrePDF/OpenPDF