ampproject / ampproject/amphtml
Problem with amp sidebar 1.0 and anchor links
Open
Component: amp-sidebar
P3: When Possible
Stale
Type: Bug
WG: components
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
In the sidebar, I have a table of content that leads to anchor links to the page. The problem is that when the sidebar is closed, the view is transferred not to the anchor link, but to the place where the sidebar was opened.
### Reproduction Steps
https://severm.kz/remont-holodilnikov/ ,
https://user-images.githubusercontent.com/89949051/207121221-6692ebfd-a5a9-48cf-90fa-b5abae1b7054.mp4
### Relevant Logs
_No response_
### Browser(s) Affected
Chrome
### OS(s) Affected
_No response_
### Device(s) Affected
_No response_
### AMP Version Affected
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.