if nomadnet url is empty we should load index.mu

This commit is contained in:
liamcottle 2024-09-22 23:18:52 +12:00
parent 1822f19ce4
commit a108047371

View file

@ -391,10 +391,20 @@ export default {
// parse relative urls
if(url.startsWith(":")){
// remove leading ":"
var path = url.substring(1);
// if page path is empty we should load "/page/index.mu"
if(path === ""){
path = "/page/index.mu";
}
return {
destination_hash: null, // node hash was not in provided url
path: url.substring(1), // remove leading ":"
path: path,
};
}
// parse absolute urls such as 00000000000000000000000000000000:/page/index.mu