Onebox for same site not working


#1

Hello !

I see that copy / pasting a link to the same discourse (to another topic) does not display onebox anymore… Just the link.
Would you have an idea why / what I can do ? I don’t really know how to debug this…

Thank you


(Jay Pfaffman) #2

It wasn’t decided that the title is better, like Changing Max Attachment Size but if you paste on a line by itself you still get a onebox. Like


#3

On my discourse, the URL is not replaced (neither by title nor window)…


(Jay Pfaffman) #4

I think I might have seen that on a site I’ve worked with too. Can you share your URL? What version are you running?


#5

My bad ! I was pasting the URL of a topic removing the IDs at the end of the URL (I wanted to send to the topic itself, not to a specific message).
With the full URL it works ^^

Thank you !


(Joshua Rosenfeld) #6

https://meta.discourse.org/t/onebox-for-same-site-not-working/71321/4

For reference, there are 2 IDs in most URLs. The first is the topic ID, the second is the post ID. It is safe to change/remove the post ID, it is not safe to remove the topic ID.


#7

Well, the link still works without the topic ID (that’s what got me !) as it redirects you to the URL with this ID. But it does not work for onebox, which does not follow the redirection (which is normal ^^)