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
I am trying to use the scoped tags feature on an index page to list the tagged pages associated with a subsection. My top level index page shows all tags below it as expected but when i use <!-- material/tags { scope: true } --> on an index page for a subsection i see pages listed for other subsections as well.
Thanks for reporting and providing the excellent minimal reproduction! Fixed in 8f05b712b. So, this turns out to be something that we did not anticipate. The problem boils down to the fact that when comparing the URLs of pages with listings and pages with tags, foo/index.md and foo.md both map to /foo/, which doesn't allow us to correctly detect scoped tags listings in subsections. Switching to File.src_uri fixes the issue.
Context
I am using mkdocs insiders
Bug description
I am trying to use the scoped tags feature on an index page to list the tagged pages associated with a subsection. My top level index page shows all tags below it as expected but when i use
<!-- material/tags { scope: true } -->
on an index page for a subsection i see pages listed for other subsections as well.Related links
-https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/?h=scop#scoped-listings
Reproduction
9.5.49+insiders.4.53.14-scoped-tags-issue.zip
Steps to reproduce
<!-- material/tags { scope: true } -->
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: