fixed authentication issue with redirects
fixed issues with query-strings in filenames