Relative page links are not working with PDF export

Summary:

I have a collection of SVG files I made with Inkscape, that I export to PDF and then merge with an external tool in one big document. In one of those document I would like to have links to other pages (to build some kind of table of contents for my final PDF). I tried to add a link with #page=2 as href, but when exported to PDF the link is not present (with an absolute link, it works).

Steps to reproduce:

  • open Inkscape
  • add something on the page
  • create a link on the newly added element
  • enter #page=2 in the "href" input
  • export the file as PDF
  • open the PDF

What happened?

There is no link on the element in the PDF file.

What should have happened?

There should have been one (even if it may not lead anywhere when clicked since the exported document should be single paged)

Sample attachments (a SVG file and the PDF that Inkscape generates from it):

inkscape-bug-pdf-link.svg inkscape-bug-pdf-link.pdf

Version info

Inkscape 1.2.1 (9c6d41e410, 2022-07-14)

    GLib version:     2.72.3
    GTK version:      3.24.34
    glibmm version:   2.66.4
    gtkmm version:    3.24.6
    libxml2 version:  2.9.14
    libxslt version:  1.1.35
    Cairo version:    1.17.6
    Pango version:    1.50.8
    HarfBuzz version: 5.1.0

    OS version:       Arch Linux

Edited by Gelez
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information