Generic Onebox query string parameters

When discourse oneboxes URL, it doesn’t include query string in oembed request

  1. I onebox metr
  2. Onebox sends following request to the server:
    | GET /oembed?url=https://metr.at/r/eMJRR&format=json
  3. Instead I would like onebox to send this:
    | GET /oembed?url=https://metr.at/r/eMJRR?zoom_start=2&zoom_end=5&format=json

Is it a bug or supposed to be like this?

It is weird for query strings to be relevant to a onebox request.

Well, maybe it is uncommon, but I don’t think it is wrong. Why not pass query string together with the request?

Hmm, we do parsing for Youtube URLs though.

3 Likes