Skip to content

_print url does not respect relativeURLs=true #2638

Description

@BlackIsTheNewBlack

Environment

  • Hugo version you are using (output of hugo version):
  • hugo v0.161.1-ea8f66a7ce988664dcc84c052fc96757042e2e4a+extended linux/amd64 BuildDate=2026-04-29T13:56:01Z VendorInfo=gohugoio
  • Docsy version you are using:
  • v0.15.0
  • How are you using Docsy? As a:
    • Hugo module
  • OS:
    • Linux

Problem

The _print/ url does not respect the hugo.toml relativeURLs = true setting, so all the printed pages use absolute URLs. The rest of the site respects relativeURLs=true.
This has the following implications:

  • all images are missing when browsing _print from the local file system, so local html to pdf also will not work.
  • printing will not be available when serving from a subfolder different than /. (with relativeURLs=true, baseURL has to be /)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions