Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Differences between internal routes and external routes with / in parameter

$
0
0

Update: I have noticed that it's not the / which is a problem but the . so it looks like any url with . is not recognized in external routing. What's the recommended procedure? Example:

/doc/some/path.With/dots.txt

This works with internal routes but not with externals.

Original issue:

For a blazor page, I have a Url Pattern of

@page "/{area}/{*Id}"

When routing to

/doc/some/path/to/a/doc

This works perfectly when arriving from an internal route. However, on F5, the blazor component is not hit, i.e. it doesn't recognize the pattern.

I have also tried to explicitly escape the Id as

/doc/some%2Fpath%2Fto%2Fa%2Fdoc

with the same result: the internal route works, the external doesn't. Do I need to change my config? Is this a bug in blazor?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>