0

I found a strange behaviour on Safari that seems to be affecting URL sharing. If I copy the url by selecting all coping it I can share the full link. Such as www.somesite.com/somepage?params=somename&urlparams=someothername

When I copy paste a link by using "copy" from the menu, all the url params that are in the url are gone and I can only copy paste this: www.somesite.com/somepage

Is there a bug on safari or some option that stops params from being shared?

Currently this happens on: software version 15.4

1
  • 1
    My guess is they're stripping parameters in an attempt to provide some kind of privacy and/or prevent leakage of tokens embedded in URLs. Either way, it's likely intentional.
    – tubedogg
    Apr 27 at 9:56

1 Answer 1

1

The problem was that ios shares canonicals of the website, not the actual link. The only solution was to remove the canonical from the pages that needs to be shared with params.

5
  • If the page needs to be shared with params then the canonical URL should include those params
    – Ezekiel
    May 9 at 13:12
  • The thing is google does not recommend that... which was my reasoning since SEO is very important for us.
    – rockon_d
    May 10 at 7:32
  • If your URL requires the parameters to load then that’s the canonical URL. If the parameters are for tracking then it’s not canonical and shouldn’t be shared. That’s what Google says and that’s how Safari works.
    – Ezekiel
    May 11 at 11:52
  • thanks for this ^
    – rockon_d
    May 11 at 12:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .