# New Topic URL shortcut not working from \`/latest\` route

**URL:** https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799
**Category:** Bug
**Created:** [8 april 2019 om 20:47 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799 "2019-04-08T20:47:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [8 april 2019 om 20:47 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/1 "2019-04-08T20:47:32Z")

</div>

`/new-topic` used to work perfectly with Tab-Bar component in mobile. But after the Discourse 2.3 beta 5 update, it stopped working (or rather it stopped working from a lot of routes). I notified Osama for this at the Tab Bar component topic and also exchanged a few messages about it. So the issue happened in Ember \>= 3.7.0

> <https://github.com/discourse/discourse/blob/aec457e09a019edab7d28237df6100236457755a/app/assets/javascripts/discourse/routes/new-topic.js.es6#L58-L70>

“Then” should be getting executed in line 58 but due to some reason, it’s aborting that part. Can someone tell how this can be solved and `/new-topic` be fixed again to work in mobile with Tab-Bar?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [30 april 2019 om 15:27 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/3 "2019-04-30T15:27:03Z")

</div>

This turned out to be a more general problem. Any links to `/new-topic` from `/latest` would fail. That includes links from theme components, global notices, or banner topics. The issue should now be fixed, following:

[https://github.com/discourse/discourse/commit/583226d295ea10ec548d52ac3fc3d7e99628c2eb](https://github.com/discourse/discourse/commit/583226d295ea10ec548d52ac3fc3d7e99628c2eb)

@thegurjyot please can you confirm that this fixes the problem for you? The fix should hit tests-passed in the next few minutes.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [30 april 2019 om 17:59 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/5 "2019-04-30T17:59:39Z")

</div>

Yep, that’s exactly the bug I’ve fixed. Unfortunately the fix didn’t quite make it to tests-passed yet, but I’ll update here when it does.

Edit: it’s in tests-passed now

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [30 april 2019 om 21:31 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/6 "2019-04-30T21:31:11Z")

</div>

I just updated the website to the latest version and this problem seems to be fixed. Thanks a lot @david for this fix. 🙂

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [30 april 2019 om 22:54 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/7 "2019-04-30T22:54:58Z")

</div>

Awesome, it works! Question: is it _supposed_ to redirect you to the homepage and then prompt the composer?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [30 april 2019 om 22:58 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/8 "2019-04-30T22:58:19Z")

</div>

Yes, it should direct to `/latest`. If you specify a category in the link, then it will direct you to the latest page for that specific category.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [1 mei 2019 om 17:00 UTC](https://meta.discourse.org/t/new-topic-url-shortcut-not-working-from-latest-route/113799/9 "2019-05-01T17:00:09Z")

</div>

This topic was automatically closed after 22 hours. New replies are no longer allowed.
