I just realized, what if you would like to point to an image/thumbnail that is in another domain? Currently, it's not possible, because it's always prefixing with the current website (using get_url(path=page.extra.static_thumbnail)).
Proposal
Check if the static_thumbnail contains the absolute URL (checking http:// or https://), and in case it is an absolute path, then use it as it is, without using the get_url() function. Otherwise, fallback as the previous behavior.
I just realized, what if you would like to point to an image/thumbnail that is in another domain? Currently, it's not possible, because it's always prefixing with the current website (using
get_url(path=page.extra.static_thumbnail)
).Proposal
Check if the
static_thumbnail
contains the absolute URL (checkinghttp://
orhttps://
), and in case it is an absolute path, then use it as it is, without using theget_url()
function. Otherwise, fallback as the previous behavior.