Adding a link to a certain element will not work on codesandbox
trying to navigate to an id
| Software | Name/Version |
| ---------------- | ------------ |
| 小odesandbox |PROD-1564153504-2b37aae59
| Browser |Chrome
| Operating System |Mac
Super interesting bug! This code seems like it could be related:
@SaraVieira Navigation to ids are working fine in your sandbox so I think this issue is fixed. (Tested on Firefox 69.0 (64-bit) on LInux)
@armujahid Hm, still not working for me... (macOS Chrome 76.0.3809.132)
@karlhorky you are right. I tested it on Chrome 76.0.3809.132 (Official Build) (64-bit) on Linux and it's not working in both "Project View" and "New Window". So this is not a macOS exclusive issue.
Related: https://github.com/codesandbox/codesandbox-client/pull/198
But that code only affects history in iframe (Project View). New tab view shouldn't be affected by it.
I also noticed another interesting thing. If we directly open https://1ybpg.csb.app/ (in incognito window) without using "Open in New Window" button then id navigation works fine in chrome.
I'm seeing this same issue. Any sandbox you build with a static HTML5 have this issues when trying to navigate to an internal ID on the page.
Please fix this. I sadly wasted hours that I will not be getting back due to this issue.
https://github.com/codesandbox/codesandbox-client/issues/4527
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed.
This issue is still not resolved so I think this shouldn't be closed :)
It is finally fixed 馃帀
Awesome, thanks @SaraVieira !