Unify Pinned file link behaviour
In order to improve Pinned file UX we should handle links better.
When a user clicks a file or line link we shouldn't apply pinned file parameter to the current page URL. That change will ensure we no longer pin the file if you refresh the page.
However the link itself should contain the pinned file param so it can be shared. Now, in order to share a pinned file link you'd have to explicitly copy it, copying your current URL shouldn't pin the file.
This should be done for:
- File line link
- File link (file name in the file header)