Remove unnecessary query-string from link