Skip to content

enableSPA: false causing weird interaction with the explorer and causing the page to scroll #1918

@cromelex

Description

@cromelex

Describe the bug
When I click on a link in the explorer, if that page is long (ie, has a scrollbar), the content page scrolls down slightly (as if to align with the link on the explorer)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://dansgarden.eu
  2. Click on Technology/Projects, then "Smart plant sensors"
  3. See content page scroll incorrectly further down

Going directly to https://dansgarden.eu/projects/plant-sensors also seems to trigger this.

Alternatively

  1. Clone quartz repo with docs as content
  2. change enableSPA: false, in the quartz config
  3. build and serve locally
  4. navigate to localhost:8080/features/syntax-highlighting and observe the same scrolling behaviour

Expected behavior
I'd expect the content page not to scroll.

I initially thought this was an issue with a modification I did, but after redoing everything from scratch, step by step, I was finally able to detect it seems to be caused by the enableSPA: false,. I have now been able to reproduce it with the original quartz repo and site (provided the change is made on the config file with enableSPA: false,).
I am using enableSPA: false, in order to use Cloudflare's email obfuscation. Without it, the email addresses are not being deobfuscatted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions