-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query strings break hash links on suttacentral #13
Comments
on second thought, i dont think this is me. i think its sutta central. if you go directly to https://suttacentral.net/sn22.84/en/sujato?layout=sidebyside&reference=main/pts¬es=asterisk&highlight=false&script=latin#pts-vp-pli3.109 (or its short form https://suttacentral.net/sn22.84/en/sujato#pts-vp-pli3.109) it doenst even scroll to the correct place. but pressing enter in the URL bar after the page has already loaded does (which is why it seems like my params might be the problem). im guessing because when the page loads, element with id pts-vp-pli3.109 doesnt exist yet. you can see the sutta content stagger in a bit after the header and footer load. |
When I click on the first link, it scrolls to the correct place for me. The second link will only work if your default setting is that the PTS ids are displayed. In any case, is it allowable to have two Also, I think Google can give them the referrer if they want to know. I also don't think Bhante ever looks at the analytics. 😁 |
hmm true, safari iOS scrolls to to it, but firefox, chrome and safari on macOS dont for me. can you get it to work on desktop?
i doubt it. your probably right
🥲 |
I'm on Windows FF and it works. But on chrome it does not. Huh. Strange. As you said, if you put the cursor in the url bar after the page has loaded and press enter, then it does scroll to the spot. |
from https://discourse.suttacentral.net/t/suttacentral-2021-bug-reports-here/19609/215
The text was updated successfully, but these errors were encountered: