mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-02 21:00:02 -05:00
if nomadnet url is empty we should load index.mu
This commit is contained in:
parent
1822f19ce4
commit
a108047371
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue