neuropoly / intranet.neuro.polymtl.ca

NeuroPoly's lab manual
https://intranet.neuro.polymtl.ca
4 stars 6 forks source link

Hyperlink not scrolling when opening a new tab #112

Open NathanMolinier opened 7 months ago

NathanMolinier commented 7 months ago

Description

Sometimes, when copying a link to a specific element within our intranet hoping that this same link will redirect us or a collaborator to this specific part of our intranet, the link is not working well and the new page is not scrolling to this specific part ?

This is happening currently with the dataset curation page.

Example with a link redirecting to the JSON sidecars section: https://intranet.neuro.polymtl.ca/data/dataset-curation.html#json-sidecars

Does anyone have any clues about the origin of the problem ? @namgo @kousu @jcohenadad @mguaypaq

mguaypaq commented 7 months ago

This is working fine for me in Firefox Version 115.6.0esr (64-bit) on Debian 12, but I can confirm that the scrolling is broken on Chrome. Since the behaviour is different between browsers, this will probably be annoying to debug and fix.

The discussion in this stackoverflow thread is interesting, and contains some suggested fixes which may or may not apply. The problem may be due to slow loading of the part of the page which contains the id="json-sidecars"?