truncate filename for relative path URL in RR

This commit is contained in:
Stephen Birarda 2017-08-15 15:38:47 -07:00
parent 100ac65975
commit a59103aad5

View file

@ -94,6 +94,9 @@ void AssetResourceRequest::requestMappingForPath(const AssetPath& path) {
// if we got a redirected path we need to store that with the resource request as relative path URL
if (request->wasRedirected()) {
_relativePathURL = ATP_SCHEME + request->getRedirectedPath();
// truncate the filename for the re-directed asset so we actually have a path
_relativePathURL = _relativePathURL.adjusted(QUrl::RemoveFilename);
}
break;