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

Make URL configurable by reading from appsettings.json file in a blazor page

$
0
0

I have a blazor project and I wanted to make my page URL configurable by reading from appsettings.json file. I have tried the following

Login.razor page

@page "LOGIN_URL"

appsettings.json file

"LOGIN_URL": "496436/login"

This is what I wanted. But I am not able to find a solution for the same and according to the values in appsettings.json, the url should automatically change or reflect in Login page.


Viewing all articles
Browse latest Browse all 4006

Trending Articles



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