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
... the problem doesn't occur with the mkdocs or readthedocs themes
... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
The initial loading of a URL to a permalink located within a collapsible admonition block will not scroll to that link nor automatically expand the collapsed block. This used to work in past versions of mkdocs-material, but I am not sure exactly what version this changed in.
Expected behaviour
A URL to a permalink located within a collapsible admonition block, when loaded in a new browser window or tab, would automatically scroll to that block and expand it to where the permalink is located.
Actual behaviour
The page loads, but it loads as if no permalink was used. Also, using the same permalink from the TOC does not change the page (since it must think its already at that page). Switching to a different TOC link on the same page and clicking on the original permalink in the TOC works.
Steps to reproduce
Using the included mkdocs.yml (from below) and the following docs/index.md document:
# Test
??? success "Section 1"
## Section 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...
??? success "Section 2"
## Section 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...
Fixed in 726888c. This bug is indeed a regression related to the rewrite in 7.0.0. I'll revisit the whole anchor/hash positioning pipeline at some point in the future, as it needs some refactoring, probably when anchor tracking made its way into master.
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
The initial loading of a URL to a permalink located within a collapsible admonition block will not scroll to that link nor automatically expand the collapsed block. This used to work in past versions of mkdocs-material, but I am not sure exactly what version this changed in.
Expected behaviour
A URL to a permalink located within a collapsible admonition block, when loaded in a new browser window or tab, would automatically scroll to that block and expand it to where the permalink is located.
Actual behaviour
The page loads, but it loads as if no permalink was used. Also, using the same permalink from the TOC does not change the page (since it must think its already at that page). Switching to a different TOC link on the same page and clicking on the original permalink in the TOC works.
Steps to reproduce
docs/index.md
document:Package versions
Using the
squidfunk/mkdocs-material:7.2.6
docker container hosted on Ubuntu 20.04 LinuxConfiguration
System information
squidfunk/mkdocs-material
docker container hosted on Ubuntu 20.04 LinuxThe text was updated successfully, but these errors were encountered: