❔ Blazor server app, base url / base page to set environment
Hi 🙂
I have a Blazor Server app, where I would like to use some dynamic baseurl.
Say instead of mywebsite.com/users I would like it to be mywebsite.com/{Environment}/users so that I can see which environments users I am looking at.
Basically I would like to have that Environment path always filled, and if you hit the mywebsite.com directly I would the redirect it to mywebsite.com/production as an example.
How would I set that up? It seems like a weird thing to handle in the razor pages with something like @page /{Environment}/users on all my pages including having to handle the logic of switching/using the correct environment on all pages.
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.