Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account /api target= param should accept protocol relative URL to return http + https... #122

tantek opened this Issue Mar 6, 2019 · 0 comments


None yet
1 participant
Copy link

tantek commented Mar 6, 2019

The /api endpoints accept a 'target' query parameter which currently must be an absolute URL. This proposal extends the 'target' query parameter to also accept a protocol relative URL (i.e. starting with "//") and return all mentions of that target with any protocol (e.g. both 'http:' and 'https:').

Use-case: this will allow sites which have migrated from http to https, or which still serve both http and https and accept webmentions for both, to easily query for all mentions to either http/https versions of their permalinks, to show webmentions regardless of which protocol was used in their webmention target URLs.

Test-case: is live with an iframe that embeds a display of RSVP webmentions via a service using a protocol relative URL in the target param to a api call. Check both of these:

And you should see at least one RSVP displayed in the bottom from, likely with a green checkmark . Here’s a direct link to just the RSVP display for that post but hardcoded to 'http:' mentions only: RSVP.

(Originally published at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.