How to convert a Graphite image URL to a Graphite UI URL

Here's how to take a graphite image URL (that you might obtain by right clicking a graph image and selecting "Copy Image Location") and derive the URL which would bring you to the full interactive Graphite web page that contains that graph image.

Find the substring "/render" in the image URL and remove it.

Graphite image URL

https://graphite.example.com/render/?width=962&height=649&_salt=1389738433.249&from=11%3A00_20140114&until=23%3A59_20140114&target=my.example.metric.foo.sum.count

Graphite UI URL

https://graphite.example.com/?width=962&height=649&_salt=1389738433.249&from=11%3A00_20140114&until=23%3A59_20140114&target=my.example.metric.foo.sum.count
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.