The Wayback Machine - https://web.archive.org/web/20200515221628/https://github.com/angular/components/issues/17981
Skip to content
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

Anchor within URL doesn't make the browser scrolling to the anchored section at all. #17981

Open
thariqnu-ifm opened this issue Dec 17, 2019 · 4 comments

Comments

@thariqnu-ifm
Copy link

@thariqnu-ifm thariqnu-ifm commented Dec 17, 2019

Trying to open https://material.angular.io/components/datepicker/overview#choosing-a-date-implementation-and-date-format-settings using Chrome browser.

The browser should scroll to the "Choosing a date implementation and date format settings" section.
But currently, it doesn't scroll at all. The browser stays on the top-most part of the page.

P.s. this URL is obtained through copying the link provided in the left side of the section's title.

@mikyaj
Copy link

@mikyaj mikyaj commented Dec 22, 2019

@jelbourn If no one is working on it, I can give it a try.

@mikyaj
Copy link

@mikyaj mikyaj commented Jan 2, 2020

Seems like this issue has been fixed in master branch. I checked out master from https://github.com/angular/material.angular.io and by running on local machine I can't reproduce it but I was able to reproduce it in branch 8.x.

@abhilive
Copy link

@abhilive abhilive commented Jan 4, 2020

Hi! @thariqnu-ifm & @mikyaj I can witness this issue but with a bit different behavior, once I open this link https://material.angular.io/components/datepicker/overview#choosing-a-date-implementation-and-date-format-settings in new tab/widnow, first it scrolls to that particular section and once browser finishes loading it scrolls to the top.
Chrome Version 79.0.3945.88
Windows 7 (64-bit)

@Drdobrovolny
Copy link

@Drdobrovolny Drdobrovolny commented Feb 4, 2020

I see this happening with all anchored links, when navigating to them from offsite. Will look into

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.