Alessio Caiazza

sorry for the trouble!

Please don’t feel sorry for this, you made a lot available for free to all of us.

Thanks for checking.

My site is statically generated and I implemented newbase60 deterministic short links with javascript redirects (not the best option).

I have 2 options I can apply easily:

  1. add webmention links in <head> in the shortlink pages, but then will send mentions to my canonical URL or to the permashortlink?
  2. this is more complex to implement, but I could generate a config file that will force the webserver to issue 302 redirects for the permashortlinks.

Will option n. 1 be enough for fixing this?

( 59VH0G)

This post accepts webmentions. Do you have the URL to your post?

Ryan Barrett

from Ryan Barrett
interesting bug, sorry for the trouble! you're advertising your webmention endpoint on some of your URLs, eg , but not others, eg . bridgy caches webmention endpoints by domain, and it sends wms in a deterministic order, so it tries first, sees that it has no endpoint, caches that, and skips the other one. you can work around this in the short term by advertising your endpoint on all of your posts. not ideal if you deliberately chose not to, though, i know. bridgy's caching webmention endpoints by domain isn't ideal either - details in #601 - but it has to do webmention endpoint discovery on hundreds of thousands of URLs per day, so it's a tradeoff.

Ryan Barrett

from Ryan Barrett
Yes, #1 should fix this. And Bridgy follows redirects when it serves wms, but not rel=canonical or anything else, so it will probably send the wms to your shortlinks. (I'd recommend setting up redirects anyway, we generally find that serving content on shortlinks instead of redirecting causes problems like this over time, but up to you!)