Controller for page with wildcard route

Hi,

Is there any way to get a controller for a page to have a “wildcard” route? For example if i have the page “the-page” browsable at “example.com/the-page” - can I get the same controller to also get the request at “example.com/the-page/some-other-param”?

Litium version: [7.4]

Not on an easy way and you need to override the internal api for url lookups Litium.Web.Routing.PageRouteResolver and there rewrite the url. This is an performence critical resolver and changes need to perform very well.

Thank you Patric! :slight_smile:

I have a very specific issue I’m trying to solve (or managed solve to thanks to your answer) so performance should not be a problem.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.