Skip to content

Non-root site path not working #4929

@ghost

Description

Discussed in #3615

Originally posted by michielvdmeulen December 9, 2022
I'm trying to serve a blog on a non-root path, but despite following the instructions in the documentation I can't get it to work. My situation is identical to that in the docs, apart from different url naming of course, so something like this:

URL:
https://example.com/mysite/

_quarto.yml:

website:
  title: "My Site"
  site-path: "/mysite/"

When I render the site with and without the site-path option and compare the generated index.html file in the _site folder, both are exactly identical - even when I have completely deleted and re-rendered the content. In fact, only the _site\site_libs\quarto-nav\quarto-nav.js file has one line difference:
Screenshot_1
Apparently, this is either not enough or is not picked up on the server side. I'm using the latest Quarto version (1.2.269).

Does someone have an idea what could be wrong? Any help would be highly appreciated!

Metadata

Metadata

Assignees

Labels

triaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.websitesIssues creating websites

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions