Fix CSV/Query Plan Links for cached/redirected results

Per ["The Download CSV link seems broken in SEDE query result window"](http://meta.stackexchange.com/questions/234239/the-download-csv-link-seems-broken-in-sede-query-result-window)