Showing the changes to libraries/networking/src/AddressManager.cpp (1 of 1 file). Show all
Unified · Split
| @@ -149,8 +149,15 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) { · 148 unmodified lines | |||
| 149 | // check if it is a network address first | 149 | // check if it is a network address first |
| 150 | if (handleNetworkAddress(lookupUrl.host() | 150 | if (handleNetworkAddress(lookupUrl.host() |
| 151 | + (lookupUrl.port() == -1 ? "" : ":" + QString::number(lookupUrl.port())), trigger)) { | 151 | + (lookupUrl.port() == -1 ? "" : ":" + QString::number(lookupUrl.port())), trigger)) { |
| 152 | |||
| 153 | // if we were not passed a path, use the index path | ||
| 154 | auto path = lookupUrl.path(); | ||
| 155 | if (path.isEmpty()) { | ||
| 156 | path = INDEX_PATH; | ||
| 157 | } | ||
| 158 | |||
| 152 | // we may have a path that defines a relative viewpoint - if so we should jump to that now | 159 | // we may have a path that defines a relative viewpoint - if so we should jump to that now |
| 153 | handlePath(lookupUrl.path(), trigger); | 160 | handlePath(path, trigger); |
| 154 | } else if (handleDomainID(lookupUrl.host())){ | 161 | } else if (handleDomainID(lookupUrl.host())){ |
| 155 | // no place name - this is probably a domain ID | 162 | // no place name - this is probably a domain ID |
| 156 | // try to look up the domain ID on the metaverse API | 163 | // try to look up the domain ID on the metaverse API |