Improved Q_Utils::socketUrl to handle apps hosted on a subpath