History

use the index path as default with network address

Stephen Birarda committed 10 years ago

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

Showing the changes to libraries/networking/src/AddressManager.cpp (1 of 1 file). Show all

Unified · Split

libraries/networking/src/AddressManager.cpp+8−1
@@ -149,8 +149,15 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) { · 148 unmodified lines
149149 // check if it is a network address first
150150 if (handleNetworkAddress(lookupUrl.host()
151151 + (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+
152159 // 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);
154161 } else if (handleDomainID(lookupUrl.host())){
155162 // no place name - this is probably a domain ID
156163 // try to look up the domain ID on the metaverse API