Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Antora
Antora
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 172
    • Issues 172
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 35
    • Merge Requests 35
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Antora
  • AntoraAntora
  • Issues
  • #258

Closed
Open
Opened May 28, 2018 by Peter Niederwieser@pniederw

Prefix absolute URLs on 404 page with the site base path (aka context path)

Deployed Antora sites don't always sit at the root of the domain. For example, organization pages on GitHub Enterprise have a base path of /<orgname>/.

For sites such as GitHub Pages which don't support server-side URL rewriting, root-relative paths generated by Antora must be prefixed with the site's base path or they won't work. The concrete case where I'm seeing this is resources referenced from Antora's 404 page, none of which are found. For example, href="/_/css/site.css" should be href="/<orgname>/_/css/site.css".

Please support prefixing of root-relative paths generated by Antora with a configurable base path.

Related thought: Should Antora always generate root-relative paths instead of relative paths, e.g., for clarity?

Edited Aug 24, 2019 by Dan Allen
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
v2.1.x
Milestone
v2.1.x
Assign milestone
Time tracking
None
Due date
None
Reference: antora/antora#258