History

use the index path as default with network address

Stephen Birarda committed 10 years ago

Commit fac30bb1 parent 15c922f1 file · +8 −1Browse files

Unified · Split

libraries/networking/src/AddressManager.cpp+8−1
@@ -149,8 +149,15 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) { · 148 unmodified lines
149 // check if it is a network address first149 // 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 now159 // 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 ID162 // no place name - this is probably a domain ID
156 // try to look up the domain ID on the metaverse API163 // try to look up the domain ID on the metaverse API