Skip to content

Refreshing a page (F5) Fails to load when using URL with Guid & double data type #47149

Closed as not planned
@nssidhu

Description

@nssidhu

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am using Blazor Server (.net 7)
When I have URL with Parameter of datatype guid or double, the page Refresh using F5 fails to reload the page.
The internal navigation from the Code works fine, but fails for the following conditions

  1. When refreshing page (F5)
  2. Typing the for URL in the new window also results into same error as in Initial checkin of some samples and a readme #1

Expected Behavior

It should reload the Page without any error in both scenario

Steps To Reproduce

Link to Repo.
https://github.com/nssidhu/BlazorAppGuidInURL

Try navigating to the page using left menu for counter
It will successfully navigate,
Now Reload the Page using F5 or browser's reload button

Also look at the .gif to see the scenarios where it fails

Exceptions (if any)

image

2023-03-10_22-12-47

.NET Version

.net 7

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions