Cookie consent requested for each version of the documentation #7947
-
Hello there! We recently setup site analytics and configured cookie consent on our documentation page. We're using mike for versioning as per Material for MkDocs documentation. We're currently encountering the issue where cookie consent is asked every time the user switches version. Is this supposed to happen? Is there any way around it? Did we configure something wrong? Feel free to ask any additional detail about the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Hm, interesting. Can you point us to the documentation where this happens? What are the path attributes of the cookies that are set? Does site analytics have a cookie for each version? Can you point us to your |
Beta Was this translation helpful? Give feedback.
@mattdibi
Try setting the
config.extra.scope
to/kura/
.mkdocs-material/src/templates/partials/javascripts/base.html
Line 30 in 454af62
This should result in
new URL("/kura/", location)
, and always resolve tohttps://eclipse-kura.github.io/kura/