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:
- Discourse requests
https://example.org/aand follows the redirect. - Discourse requests
https://example.org/loginand retrieves title, image, … - Discourse shows a Onebox showing the information retrieved from
https://example.org/login, and links tohttps://example.org/login. The generated Onebox doesn’t link tohttps://example.org/aanywhere.
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? ![]()