Unified · Split
| @@ -149,8 +149,15 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) { · 148 unmodified lines | ||
| 149 | 149 | // check if it is a network address first |
| 150 | 150 | if (handleNetworkAddress(lookupUrl.host() |
| 151 | 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 | 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 | 161 | } else if (handleDomainID(lookupUrl.host())){ |
| 155 | 162 | // no place name - this is probably a domain ID |
| 156 | 163 | // try to look up the domain ID on the metaverse API |