Non-root site path not working #3615
Replies: 3 comments 9 replies
-
The content should in fact be almost identical: the way we make non-root site paths work is that we convert every absolute path to the correct relative path on the web page. Can you give specifics for what's going wrong with the rendered website? |
Beta Was this translation helpful? Give feedback.
-
I am also running into this issue where deploying to a non-root url just doesn't work. It appears that most things use relative domains, but not everywhere. Here is a small snippet from my rendered <script src="site_libs/quarto-nav/quarto-nav.js"></script>
<script src="site_libs/quarto-nav/headroom.min.js"></script>
<script src="site_libs/clipboard/clipboard.min.js"></script>
<script src="site_libs/quarto-search/autocomplete.umd.js"></script>
<script src="site_libs/quarto-search/fuse.min.js"></script>
<script src="site_libs/quarto-search/quarto-search.js"></script>
<meta name="quarto:offset" content="./">
<link href="./_assets/brand/favicon.ico" rel="icon"> here we can see that the link to the |
Beta Was this translation helpful? Give feedback.
-
I have the same issue as described but with a book document. It is described here: https://stackoverflow.com/questions/74463751/how-can-i-explicitly-link-to-the-index-html-file-in-a-quarto-book. Using the suggested solution of setting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
When I render the site with and without the

site-path
option and compare the generatedindex.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: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!
Beta Was this translation helpful? Give feedback.
All reactions