You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the root project of a projects plugin sets a site_url to root, e.g. http://example.com/ versus http://example.com/docs, and when the child projects setting something else, e.g. http://example.com/MyApp, then the href attribute of the generated link tags for the CSS/JS of the sub-project are incorrect. This causes them to 404 and not properly
Fixed in 7c4ef0b. There was a bug in path computation if paths where computed from site_url, sometimes returning an absolute path, which explains that the file system path was part of the asset URL. There are many different configurations that we need to account for (no site_url set, some set, all set, site_url pointing to same base paths, etc.). Additionally, the fix in #6437 was not specific enough and was also adapted, so the reproduction in #6437 remains working.
Context
Previously discussed in #5800 (reply in thread).
Seemingly is a regression of #6437.
Bug description
When the root project of a projects plugin sets a
site_url
to root, e.g.http://example.com/
versushttp://example.com/docs
, and when the child projects setting something else, e.g.http://example.com/MyApp
, then thehref
attribute of the generatedlink
tags for the CSS/JS of the sub-project are incorrect. This causes them to 404 and not properlyRelated links
Reproduction
bug.zip
Steps to reproduce
python3 -m venv venv
. venv/bin/activate
pip install --upgrade --force-reinstall mkdocs-material
mkdocs serve
/MyApp
pageBrowser
Chrome
Before submitting
The text was updated successfully, but these errors were encountered: