Safari maintains this information internally, but I've only been able to make it divulge the actual URL by enabling the web inspector (Option-Command-I) after you have enabled the Debug menu at the bottom of the advanced tab in Safari Preferences (Command-,).

You will see the **Full URL** under the Location disclosure in the bottom right corner of your screen. The _only_ good part of this is the text is copyable once you've navigated and selected it. It might be possible to write a Safari extension to perform this copy, but I have not found one to do this yet.

![enter image description here][1]

As provided by Arjan you can also make a bookmark and use JavaScript to retrieve the URL. 

    javascript:(function(){window.location.href=window.location.href.replace("search?", "#");})()


  [1]: https://i.sstatic.net/O0hUV.png