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

In Blazor application, route with parameter on razor page does not load images and css on browser refresh

$
0
0

I have .Net 6 server side Blazor application. On razor page I have two routes for the page. @page "/empployee" as default and @page "/empployee/{Page:int}" for pagination.

@page "/empployee"@page "/empployee/{Page:int}"

It's working all well (with switching between pages) untill I refresh browser when I am on /empployee/{Page:int} route. After refresh my css, images and some component do not load.Refreshing browser on /empployee works fine.I tried removing @page "/empployee" and making default page "/empployee/1". Then even on first load, it gives same problem on default page too. I tried changing iamges source path with "~/folderName". Still no change. Not sure how page cycle works and what's going wrong.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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