# Preview non-public links

**URL:** https://meta.discourse.org/t/preview-non-public-links/118806
**Category:** Feature
**Created:** [27.Май.2019 18:49:52 UTC](https://meta.discourse.org/t/preview-non-public-links/118806 "2019-05-27T18:49:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [27.Май.2019 18:49:52 UTC](https://meta.discourse.org/t/preview-non-public-links/118806/1 "2019-05-27T18:49:52Z")

</div>

There’s a recurring issue we see on [community.wanikani.com](http://community.wanikani.com) where people want to share a specific page of [wanikani.com](http://wanikani.com), but since it’s only visible if you’re logged in, Discourse previews the login page instead. This happens because navigating to a private page when not logged in redirects to the login page.

For example:  
[https://www.wanikani.com/kanji/目](https://www.wanikani.com/kanji/%E7%9B%AE)

becomes

> **[WaniKani, a kanji learning application by Tofugu](https://www.wanikani.com/kanji/%E7%9B%AE)**
>
> Learn Japanese kanji the effective way!

* * *

I know that you can skip the preview by putting a space in front of it, but it seems like a lot of people don’t know about this (and for some reason many people don’t verify that the preview is correct), so it’s a fairly common occurrence that people post useless links, which causes confusion.

Other example where this issue occurs is linking to Amazon order history or payment settings:  
[https://smile.amazon.com/gp/css/order-history?ref\_=nav\_orders\_first](https://smile.amazon.com/gp/css/order-history?ref_=nav_orders_first)

[https://smile.amazon.com/cpe/managepaymentmethods?ref\_=ya\_d\_c\_pmt\_mpo](https://smile.amazon.com/cpe/managepaymentmethods?ref_=ya_d_c_pmt_mpo)

* * *

Here’s two examples where the links are redirected to the login page, but they are not previewed here. I don’t know if that’s because of some smart logic handling those cases, or if the pages just aren’t considered previewable.

> **[は (JLPT N5) | Bunpro](https://bunpro.jp/grammar_points/3)**
>
> は (pronounced わ) is often considered to be one of the most difficult particles to master in Japanese, alongside が. は marks the topic of the sentence, and d...

[https://www.crunchyroll.com/home/queue](https://www.crunchyroll.com/home/queue)

It seems like the WaniKani and Amazon examples are working similarly to other previewable redirected pages (like a link for the Wikipedia page on Final Fantasy Versus 13 showing the preview for the redirected page for Final Fantasy 15). It just happens that for those two examples, previewing the redirected page is detrimental.

> **[Final Fantasy XV](https://en.wikipedia.org/wiki/Final_Fantasy_Versus_13)**
>
> Final Fantasy XV\[a\] is a 2016 action role-playing game developed and published by Square Enix. The fifteenth main installment of the Final Fantasy series, it was released for the PlayStation 4 and Xbox One in November 2016, Windows in March 2018, and as a launch title for Stadia in November 2019. The game features an open world environment and action-based battle system, incorporating quick-switching weapons, elemental magic, and other features such as vehicle travel and camping. The base camp...

* * *

Can this be improved in any way? At first I thought skipping previews for any redirected links might make sense, but with the Wikipedia example I think that could be too broad. Ideally links that redirect to things like login or 404 pages wouldn’t get previewed, but I’m not sure of a consistent way to detect that.

Also, it would be pretty cool if there was a way to provide a Discourse instance with login cookies (or whatever would be needed) for specific websites so that previews could be shown even for normally private pages.
