# How to set default path?

**URL:** <https://community.weweb.io/t/how-to-set-default-path/3734>\
**Category:** How do I?\
**Created:** [August 1, 2023, 7:26am UTC](https://community.weweb.io/t/how-to-set-default-path/3734 "2023-08-01T07:26:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [August 1, 2023, 7:26am UTC](https://community.weweb.io/t/how-to-set-default-path/3734/1 "2023-08-01T07:26:05Z")

</div>

Hi! I have a dynamic URL with ticket\_id variable, “[abc.com/ticket/ticket\_id](http://abc.com/ticket/ticket_id)”

how do I set it such that “[abc.com/ticket](http://abc.com/ticket)” goes to a specific ticket (i want the latest ticket to show), so that it doesn’t lead to a 404 page if users try to go to the “[abc.com/ticket](http://abc.com/ticket)” page?

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [August 1, 2023, 9:49am UTC](https://community.weweb.io/t/how-to-set-default-path/3734/2 "2023-08-01T09:49:23Z")

</div>

Hi, you have to create a different page with /ticket as path. Variable in path are not optional.
