I created a Razor Class library (v6). In the RCL I have a page at ~/Pages/Page1.cshtml, which is accessible at /Page1.
But the RCL is for use in other projects, so I want a client project to be able to customise the path.
For example, how can a client project change that to /Foo/Page1?
This is a working but NON-IDEAL solution.
In the client project:
In the RCL project:
This works, but both routes are active:
It's unclear how to remove the original one.
I'm leaving this question open. If you have a better way, add your answer and I'll accept it.