Incoming links from Medium rendering source files?
I created an "About" page on Medium (https://medium.com/@lev.lc/about) with several inline links back to my Blot site notes. However, I noticed that all the links render as .md files, including the landing page of my site, which has never happened before.
Is this a feature of how Medium handles outbound links, or is it a feature of Blot? I notice that medium adds ?source=parameters to the links...
Has anyone linked to their Blot sites from Medium or perhaps had a similar experience with other platforms?
Strange indeed. It looks like Medium adds ?source after the link? That's why it triggers the file view on Blot. My workaround would be to add an extra random "?part" at the end of your link, so that when Medium adds "?source", it won't trigger the source file view on Blot.
ev.lc/work?nope would become lev.lc/work?nope?source (and it works.)
(at least that's what I would try) Hope this helps!
Good one, thanks! Unfortunately medium just adds "&source=user_about" after "?something=" and it triggers the same source view with blot. I didn't know of that feature, that by adding "/?source=x" to any link on a blot site we can retrieve its source file.
Ah I think when adding a first "?something" Medium transform its "?" into "&" and it still trigger the "?source" view on Blot. Try adding "#top" at the end of your URL in Medium instead maybe? (not sure if it will work)
Thanks again! An anchor (like #top) was the first thing I tried, but Medium just appended it to the end of the link. I also tried using %3F after the link, creating redirects, and even using medium%20query%20string%20parameter.md and medium?source=user_about----------------------c0540a6dd76c--------------- as permalinks—which, I know, is completely futile. ))
I wish David were here to say he would enable the option to turn off the source view in the settings. )
After Medium support replied that there is nothing they can (read: "want to") do, I used ChatGPT to write a Cloudflare Worker. For anyone in the same situation, here are my notes on the process: https://lev.lc/medium-query-parameter
Very smart solution indeed. Well documented too. 👏
This is an interesting 'bug', I'll make it possible to disable the Blot feature which redirects requests to the source file.
Ultimately, it's Medium that is messing with your links. But fine, I'll add a workaround!
This should now be fixed! I ended up simply requiring the source query to equal true for Blot to perform the redirect to the source file. This means that Medium's inbound links should work as intended.