Onebox redirects prevent linking to login-only content

Why would you need anything like that?

Sorry if this is the source of confusion, but maybe my initial request was unclear. Let me clarify:

Assume the user links to https://example.org/a, but that redirects to https://example.org/login unless signed in. The current behavior:

  1. Discourse requests https://example.org/a and follows the redirect.
  2. Discourse requests https://example.org/login and retrieves title, image, …
  3. Discourse shows a Onebox showing the information retrieved from https://example.org/login, and links to https://example.org/login. The generated Onebox doesn’t link to https://example.org/a anywhere.

Only the bold part is what I find problematic. Yes, by all means, follow the link and retrieve information from there, but the Onebox should always link to the URL I entered.

This is not about the Onebox showing info from the sign-in page (What else should it show?), just about the Onebox creation completely obscuring the original link target.

If this were implemented, the Onebox in my original post would still look identical, but link to https://dgit.cs.uni-saarland.de/fefrei/my-top-secret-project/.

Does that make more sense? :slight_smile:

3 Likes