From fac30bb0aee4e2b5abcec1e4e59ea76917e07266 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 21 Jan 2016 18:01:24 -0800 Subject: [PATCH] use the index path as default with network address --- libraries/networking/src/AddressManager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/networking/src/AddressManager.cpp b/libraries/networking/src/AddressManager.cpp index f99e498ebf..03b33eae38 100644 --- a/libraries/networking/src/AddressManager.cpp +++ b/libraries/networking/src/AddressManager.cpp @@ -149,8 +149,15 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) { // check if it is a network address first if (handleNetworkAddress(lookupUrl.host() + (lookupUrl.port() == -1 ? "" : ":" + QString::number(lookupUrl.port())), trigger)) { + + // if we were not passed a path, use the index path + auto path = lookupUrl.path(); + if (path.isEmpty()) { + path = INDEX_PATH; + } + // we may have a path that defines a relative viewpoint - if so we should jump to that now - handlePath(lookupUrl.path(), trigger); + handlePath(path, trigger); } else if (handleDomainID(lookupUrl.host())){ // no place name - this is probably a domain ID // try to look up the domain ID on the metaverse API