BS-1998, Add query string to export link and fix url.