# Different landing page for desktop vs mobile theme?

**URL:** https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019
**Category:** Feature
**Created:** [June 18, 2016, 11:42pm UTC](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019 "2016-06-18T23:42:45Z")
**Posts on this page:** 1
**Showing post:** 34

<div class="post-metadata">

### Author: ![msinger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/msinger/32/144985_2.png) [@msinger](https://meta.discourse.org/u/msinger)
#### Post date: [June 29, 2019, 2:33am UTC](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019/34 "2019-06-29T02:33:18Z")

</div>

Any reason not to combine your script with the following in Customize → Themes → Mobile → Header?

```
<script>
  if (window.location.pathname == "/")
  { window.location.href = "/latest";
  }
</script>

```

This will handle the initial redirect to /latest if the user arrives on the homepage.

---

_[View the full topic](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019)._
