Skip to content

SSR: internal a href links do not scroll to the top of the new page when clicked #53459

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

Open
1 task done
heron1 opened this issue Jan 18, 2024 · 2 comments
Open
1 task done
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug.
Milestone

Comments

@heron1
Copy link

heron1 commented Jan 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

internal a href links do not scroll to the top of the new page when clicked in Blazor SSR

Expected Behavior

a href links scroll to the top of the new page when clicked

Steps To Reproduce

Put any <a href=..> link in a page, click it, and observe the new page does not scroll to the top.

Exceptions (if any)

No response

.NET Version

.NET 8

Anything else?

No response

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jan 18, 2024
@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Feb 6, 2024
@wtgodbe wtgodbe removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Feb 6, 2024
@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Feb 6, 2024
@MackinnonBuck MackinnonBuck added this to the 9.0-preview6 milestone Feb 8, 2024
@MackinnonBuck MackinnonBuck added the bug This issue describes a behavior which is not expected - a bug. label Feb 8, 2024
@MackinnonBuck
Copy link
Member

@heron1 Does this apply only when the querystring in the URL changes? Or does it also occur when navigating between internal pages?

This should hopefully be addressed as part of our solution to #40190.

@MackinnonBuck MackinnonBuck modified the milestones: 9.0-preview6, 8.0.x Feb 8, 2024
@heron1
Copy link
Author

heron1 commented Feb 8, 2024

@MackinnonBuck My problem seems to be the opposite of the issue you linked. Pages are not scrolling to the top of new pages as they should be per standard web guidelines (take this website for example).

@wtgodbe wtgodbe removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Feb 13, 2024
@github-project-automation github-project-automation bot moved this to 8.0.x in Servicing Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug.
Projects
Status: 8.0.x
Development

No branches or pull requests

3 participants