Skip to content

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

Open
@heron1

Description

@heron1

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

Activity

ghost added
area-blazorIncludes: Blazor, Razor Components
on Jan 18, 2024
removed
pending-ci-rerunWhen assigned to a PR indicates that the CI checks should be rerun
on Feb 6, 2024
added this to the 9.0-preview6 milestone on Feb 8, 2024
added
bugThis issue describes a behavior which is not expected - a bug.
on Feb 8, 2024
MackinnonBuck

MackinnonBuck commented on Feb 8, 2024

@MackinnonBuck
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.

heron1

heron1 commented on Feb 8, 2024

@heron1
Author

@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).

removed
pending-ci-rerunWhen assigned to a PR indicates that the CI checks should be rerun
on Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    Projects

    Status

    8.0.x

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @heron1@MackinnonBuck@wtgodbe

        Issue actions

          SSR: internal a href links do not scroll to the top of the new page when clicked · Issue #53459 · dotnet/aspnetcore