# Client-side route

**URL:** https://meta.discourse.org/t/client-side-route/323590
**Category:** Development
**Created:** [27 augustus 2024 om 15:36 UTC](https://meta.discourse.org/t/client-side-route/323590 "2024-08-27T15:36:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [27 augustus 2024 om 15:36 UTC](https://meta.discourse.org/t/client-side-route/323590/1 "2024-08-27T15:36:15Z")

</div>

Hello,

Can someone guide me how can I create a route on client side?

Thanks!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [27 augustus 2024 om 15:37 UTC](https://meta.discourse.org/t/client-side-route/323590/2 "2024-08-27T15:37:19Z")

</div>

See:

> [@Using the new custom-homepage feature](https://meta.discourse.org/t/using-the-new-custom-homepage-feature/302496):
>
> Trying out the new custom-homepage feature: [DEV: allow themes to render their own custom homepage by pmusaraj · Pull Request #26291 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/26291) tada@pmusaraj I wonder what’s the best approach to add components? So adding the custom-homepage modifier enables the discovery.custom route and shows a default info alert, rendered on the custom-homepage outlet: I add a component to the outlet and it renders instead: However, when I add more …

If your needs get more complex you could look at our solution here:

> **[The Home Pages Add-on - integrate static content from Landing Pages and add...](https://coop.pavilion.tech/t/the-home-pages-add-on-integrate-static-content-from-landing-pages-and-add-dynamic-pages-too/3554)**
>
> What are “Dynamic” and “Simple Pages” There are special pages facilitated by the Pavilion Landing Pages plugin and the new Home Pages Theme Component. The new Home Pages Theme Component is required to blend the content of the Landing Pages into...

---

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [27 augustus 2024 om 15:48 UTC](https://meta.discourse.org/t/client-side-route/323590/3 "2024-08-27T15:48:53Z")

</div>

Hi @merefield,

Thanks for the message. Sorry for the confusion. But, I am looking for something like this

> <https://github.com/discourse/discourse-subscriptions/blob/main/assets/javascripts/discourse/subscriptions-route-map.js#L2C3-L2C61>

**I tried this way but somehow it is not working for me**. I did created route map file in `assets/javascripts/discourse` and hbs file in `assets/javascripts/discourse/templates`. Am I missing something to create route on client side?

---

<div class="post-metadata">

### Author: ![Harshit\_Dave](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harshit_dave/32/379059_2.png) [@Harshit\_Dave](https://meta.discourse.org/u/Harshit_Dave)
#### Post date: [28 augustus 2024 om 09:42 UTC](https://meta.discourse.org/t/client-side-route/323590/4 "2024-08-28T09:42:04Z")

</div>

Can anyone guide me how can I create a new route in client side only?
