With goo.gl sunset planned for 2025 Aug, when did compiler-explorer start keeping its own database of shortlinks? Can we do anything about old shortlinks? #7719
-
https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/ says goo.gl shortlinks won't work after August 25th, 2025. godbolt.org currently stores a shortlink database itself, according to https://github.com/compiler-explorer/compiler-explorer/wiki/FAQ But sometime in between, didn't it use JS to have the user's browser shorten and expand links via goo.gl, but display them as godbolt.org/g/whatever? For example, #1334 is a bug report about a problem in that process as recently as 2019. So when did the change happen? How can I check that a shortlink will keep working or not? (Specifically in my Stack Overflow answers and comments; I usually use full links in answers, but there are cases where I didn't. And comments of course never have room for full links. But anyway, that means I know the approximate creation time of each shortlink, if there's a time window.) Is clicking on an old shortlink enough to get its expansion into the godbolt.org database? Oh, did we change from #889 is about replacing goo.gl - it talks about getting a list of all shortened links, but says "Seems Google will be keeping them "forever", so we can always cache them in our own solution as we resolve them", which seems not to be true anymore. So what's the status there, does opening a link get it "cached" permanently? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
So; yes:
Anything Anything You're right about #889 (and #1334 though I thought that's now working). I will trawl our web logs and look for all the |
Beta Was this translation helpful? Give feedback.
-
In terms of timings, looks like:
around March 2016 is when we started using |
Beta Was this translation helpful? Give feedback.
-
The "fix" for this is now live:
|
Beta Was this translation helpful? Give feedback.
-
More details at: https://xania.org/202505/compiler-explorer-urls-forever |
Beta Was this translation helpful? Give feedback.
-
Archiveteam has recently brute-forced the ID space and saved every goo.gl link, so if in the future you get a request to It might be a bad idea to do that automatically as part of handling /g/ requests, but if you're logging failed requests maybe you could periodically go through the list and see if it's archived? |
Beta Was this translation helpful? Give feedback.
I'm able to go over our last 90 days of logs, and got 12k unique google links. I'm now in the process of archiving those to a (private!) sqlite database, and I'll start using that in preference of google.
I'll keep periodically updating the database with more recent logs until the cut-off date. So, clicking on the links will make them appear in my list.
That said, if you have a list of links yourself you can share with me I can manually add them to a list of links to preserve. If you point me at SO's search I can probably finagle it myself.
Unfortunately we only keep 90d of logs for privacy reasons, so I don't have anything earlier than that, and creating the links never showed up in the …