Fix opening of remote URLs without filename
BUG:373213 Differential Revision: https://phabricator.kde.org/D3999