In the Bug category, DavidEGrayson reported an issue where left-clicking a link to a post’s raw markup in Google Chrome displays an error page, whereas opening the link in a new tab works correctly. He noted that using an external redirect service is a known workaround and referenced a similar unfixed bug regarding RSS feed links. pfaffman confirmed this is a known, low-priority problem and suggested middle-clicking or reloading the page as easier alternatives. He provided links to related discussions on the topic. DavidEGrayson questioned how Ember.js might be intercepting the link despite no visible event handlers. pfaffman speculated that since raw links load without Ember, the framework cannot handle them, suggesting that forcing them to open externally or reloading the page to bypass Ember might be the only viable solutions for now.
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 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.
Also, there is a similar bug for links to RSS feeds that was never fixed.
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.
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?
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.