# Unable to link to the raw markup of this forum post

**URL:** https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762
**Category:** Bug
**Created:** [27 september 2016 om 23:18 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762 "2016-09-27T23:18:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DavidEGrayson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidegrayson/32/120237_2.png) [@DavidEGrayson](https://meta.discourse.org/u/DavidEGrayson)
#### Post date: [27 september 2016 om 23:18 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762/1 "2016-09-27T23:18:49Z")

</div>

I would like to report a bug in discourse that is preventing me from linking to the raw markup of a post from within the post itself.

When I left-click on [this link](https://meta.discourse.org/raw/50762) in Google Chrome on Windows 10 64-bit, I would expect it to go to the raw markup for this post. It does change the URL bar of my browser to the expected URL, but it displays “Oops! That page doesn’t exist or is private.” instead of displaying the raw text. Opening the link in a new tab does work.

The only workaround I know of is to use an external URL redirection service like [TinyURL.com](http://tinyurl.com/).

Also, there is a [similar bug](https://meta.discourse.org/t/left-clicking-link-to-posts-rss-does-not-work/41437) for links to RSS feeds that was never fixed.

–David

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 september 2016 om 23:28 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762/2 "2016-09-27T23:28:27Z")

</div>

> [@DavidEGrayson](#):
>
> The only workaround I know of is to use an external URL redirection service like [TinyURL.com](http://TinyURL.com).

Easier is to middle-click or otherwise open the link in a new tab/window. It does require that the person clicking the link know to do that, though. You can also reload the page and have it work.

It’s a known problem, and low priority:

[https://meta.discourse.org/t/bug-raw-links-generate-error-and-require-reloading/44084](https://meta.discourse.org/t/bug-raw-links-generate-error-and-require-reloading/44084)

> [@Clicking link to raw version of post only works when opening in new tab](https://meta.discourse.org/t/clicking-link-to-raw-version-of-post-only-works-when-opening-in-new-tab/44716):
>
> A link to a raw version of a post in the post itself doesn’t work at first. Only when you open it in a new tab or reload the not found page it will show. To reproduce: Reply to a post or create a new topic Get the raw link of that post Edit the post to put the raw link to itself in it Click the link Expected result: you go to the raw version of said post Actual result: page is not found. Reload and you get the raw version. Or open in a new tab/window. Let’s try it out here as well. This is…

---

<div class="post-metadata">

### Author: ![DavidEGrayson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidegrayson/32/120237_2.png) [@DavidEGrayson](https://meta.discourse.org/u/DavidEGrayson)
#### Post date: [27 september 2016 om 23:32 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762/3 "2016-09-27T23:32:15Z")

</div>

Thanks. I don’t even understand how Ember.js is breaking the functionality of that link; I don’t see any javascript event handlers on it when I inspect it with Ctrl+Shift+I in Chrome. Does Ember.js install itself at some higher level that allows itself to intercept all links on the page?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 september 2016 om 23:37 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762/4 "2016-09-27T23:37:10Z")

</div>

I don’t know.

I think that since the raw link displays without Ember.js Ember can’t handle it, so reloading the page without Ember is the only way to get it to work. A solution, I suppose, would be to treat those raw links as external and force them to open in a new tab. Or something like that. For the most part, the kind of people who want to see raw text are the kind of people who can figure out how to make it work. 🙂

---

<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: [27 september 2016 om 23:54 UTC](https://meta.discourse.org/t/unable-to-link-to-the-raw-markup-of-this-forum-post/50762/7 "2016-09-27T23:54:40Z")

</div>


