Skip to content

UriHelper.GetAbsoluteUri() does not return hash #9717

Closed
@Suchiman

Description

@Suchiman

Describe the bug

In 3.0 Preview 3, UriHelper.GetAbsoluteUri(); used to return the URL you can see in the browser. Starting in Preview 4, it cuts off everything after, including #arg1=...

To Reproduce

Steps to reproduce the behavior:

  1. Create a fresh Server Side Blazor Project.
  2. Add Code in Index.razor to print the result of UriHelper.GetAbsoluteUri()
  3. Open http://localhost:port/#hello
  4. The Code will only print http://localhost:port/

Expected behavior

The AbsoluteUri includes the hash

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions