how to pass querystring to AddPageRoute in Asp.net core razor pages ?
for example
options.Conventions.AddPageRoute("/WritingList?typeID=1", "Blog");
when I add querystring , routing does not work.
I want to have these routes:
- domain.com/blog
- domain.com/news
- domain.com/mobile
- domain.com/laptop
Number 1,2 have the same structure so they should be routed to WritingList page. Number 3,4 have the same structure so they should be routed to ProductList page but I can't access querystring or route value in these pages
