# Left clicking link to /posts.rss does not work

**URL:** https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437
**Category:** Bug
**Created:** [March 22, 2016, 8:34pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437 "2016-03-22T20:34:54Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [March 22, 2016, 8:34pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/1 "2016-03-22T20:34:54Z")

</div>

Left clicking this link does not work for me (displays “Oops! That page doesn’t exist or is private.”), but middle clicking it or copying the URL works fine:

[link to posts rss](https://meta.discourse.org/posts.rss)

I am using Chrome Version 49.0.2623.87 m on Windows 10.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 22, 2016, 8:38pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/2 "2016-03-22T20:38:31Z")

</div>

This is the problem where URLs not defined in the Ember Router are assumed to be 404s.

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 22, 2016, 11:06pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/3 "2016-03-22T23:06:38Z")

</div>

I’ll check this. Give me a moment please.

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 23, 2016, 12:33am UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/4 "2016-03-23T00:33:37Z")

</div>

I think i found the solution, but it was a little tricky to do it, the route is not being sent to the server, i made a whitelist checker to know if the route is internal or not, can you review this @zogstrip @codinghorror @sam? I can make a PR if you want to, this works actually.

```plaintext
  isInternalPathButNotEmber: function(path){
    return path.indexOf("posts.rss") >= 0
  },

  routeTo(path, opts) {
    if (Em.isEmpty(path)) { return; }

    if (Discourse.get('requiresRefresh') || this.isInternalPathButNotEmber(path)) {
      document.location.href = Discourse.getURL(path);
      return;
    }

```

---

<div class="post-metadata">

### Author: ![ryantm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryantm/32/134063_2.png) [@ryantm](https://meta.discourse.org/u/ryantm)
#### Post date: [March 23, 2016, 12:58am UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/5 "2016-03-23T00:58:45Z")

</div>

The same problem happens for categories:

[https://meta.discourse.org/c/bug.rss](https://meta.discourse.org/c/bug.rss)

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 23, 2016, 1:06am UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/7 "2016-03-23T01:06:00Z")

</div>

Yes this is a rare bug, because the routes exists so, the problem is when the POST is sent to the server, is rejected and misinterpreted as a 404 error, but is not passing through Ember i think.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 23, 2016, 8:36am UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/8 "2016-03-23T08:36:25Z")

</div>

It’s hard for us to review some random code. It’s better if you do the PR and then we review 😉

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 23, 2016, 4:32pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/9 "2016-03-23T16:32:03Z")

</div>

I made a PR actually but i closed it because it didn’t pass through travis, i make it again anyways?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 23, 2016, 4:44pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/10 "2016-03-23T16:44:43Z")

</div>

Sure, don’t trust travis. Unless everything is red.

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 23, 2016, 4:55pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/11 "2016-03-23T16:55:22Z")

</div>

There you go 😁

[https://github.com/discourse/discourse/pull/4109](https://github.com/discourse/discourse/pull/4109)

---

<div class="post-metadata">

### Author: ![tibarra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tibarra/32/52222_2.png) [@tibarra](https://meta.discourse.org/u/tibarra)
#### Post date: [March 23, 2016, 7:02pm UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/12 "2016-03-23T19:02:44Z")

</div>

I made a groundwork for this, here is the PR updated:

[https://github.com/discourse/discourse/pull/4109](https://github.com/discourse/discourse/pull/4109)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 28, 2016, 8:22am UTC](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437/13 "2016-09-28T08:22:41Z")

</div>


