# Controller for page with wildcard route

**URL:** <https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638>\
**Category:** Questions\
**Created:** [September 14, 2020, 7:03am UTC](https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638 "2020-09-14T07:03:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marten.olofsson](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@marten.olofsson](https://forum.litium.com/u/marten.olofsson)\
**Post date:** [September 14, 2020, 7:03am UTC](https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638/1 "2020-09-14T07:03:53Z")

</div>

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](http://example.com/the-page)” - can I get the same controller to also get the request at “[example.com/the-page/some-other-param](http://example.com/the-page/some-other-param)”?

Litium version: _[7.4]_

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [September 14, 2020, 9:45pm UTC](https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638/2 "2020-09-14T21:45:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marten.olofsson](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@marten.olofsson](https://forum.litium.com/u/marten.olofsson)\
**Post date:** [September 17, 2020, 8:46pm UTC](https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638/3 "2020-09-17T20:46:49Z")

</div>

Thank you Patric! 🙂

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [October 15, 2020, 8:46pm UTC](https://forum.litium.com/t/controller-for-page-with-wildcard-route/1638/4 "2020-10-15T20:46:51Z")

</div>

Closed on October 15, 2020, 8:46pm UTC

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