The title need to be changed; Because I don't know how to describe my problem.
Lets say we have this pages:
localhost:5000/counter
localhost:5000/products/{itemId:int}
localhost:5000/employee/{userId:int}
The idea is to create a universal subpage "/Edit" like:
localhost:5000/counter/Edit
localhost:5000/products/{itemId:int}/Edit
localhost:5000/employee/{userId:int}/Edit
The page should lode as it was but with places to edit that specific (item, user or the parameter) in the page.
Another example could be "/Report"
The main goal is that the page base url do not change! => This is not okey
.
localhost:5000/Edit/user/{userId:int}
The main problem that I'm getting is that I can't add parameters before the subpage-Extension. Repeated code to check the url in every page will be pain.
I'm making my website like File-Explorer, the path is like this:
localhost:5000/Folder/{path:string}
// will show => list of folders and files
//
// or => a file => ImgeFile-view component
// => PdfFile-view component
// => wordFile-view component
// => video.....
Each component have it's own properties even the folder. so if i'm logged-in as admin and i add /edit to the end of any url i need to be able to edit the content and send it back to the DB.
Next step will be to change the (html or blazor) tags to input with the tags id and interface's.
Please comment with your ideas or objections.