overpass-turbo icon indicating copy to clipboard operation
overpass-turbo copied to clipboard

visiting a Permalink posted on facebook does not work

Open zalexua opened this issue 5 years ago • 5 comments

Try to post for example https://overpass-turbo.eu/s/Iga on facebook. You will see that FB will add something like ?fbclid=IwAR1ldgip5Kb6ZoWQzc to real URL. When you click it, it will redirect to a "Not Found" page with URL https://overpass-turbo.eu/null

Suggestion is to ignore any URL params (like "fbclid") for Permalinks.

zalexua avatar Apr 25 '19 16:04 zalexua

A bit of a pain, particularly when sharing adhoc queries with non technical groups who are organising through facebook (ie: bike user groups)

CloCkWeRX avatar Apr 30 '19 06:04 CloCkWeRX

Indeed, it is a bit of a pain. Is the a recent problem, as I'm sure I've posted share urls to FB previously?

DaveF63 avatar Nov 15 '19 16:11 DaveF63

Still live - I just ran into this and thought it was me - but it actually looks like any parameter argument will cause the issue.

E.g. https://overpass-turbo.eu/s/QFI works fine, but https://overpass-turbo.eu/s/QFI?foo=bar ends up going to https://overpass-turbo.eu/null

Unfortunately, this means we're unable to share these links on many social media platforms, which is a shame as it's a great way of sharing information.

leighghunt avatar Feb 13 '20 02:02 leighghunt

Hi @tyrasd, I had a quick crack at trying to reproduce this issue on a local copy of the code to try and fix it, but couldn't figure out where the /s url parameter is handled.

I can see the outbound call using the short_url_service setting, just not how it is changed back to a normal URL on the way back in.

Is it possible that the URL un-shortening is happening externally to the code, or in another branch somewhere?

leighghunt avatar Feb 24 '20 01:02 leighghunt

A work-a-round solution that works for me: Copy the permalink. Paste it into an 'ExpandURL' site, such as https://www.expandurl.net/expand

The above is required if MapCSS is used as none of the Export option support it..

Then paste that output into a 'shortenURL' site such as http://tinyurl.com CopyPaste that into FB.

DaveF63 avatar Dec 05 '21 01:12 DaveF63