mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
include all remaining parts after relative url
This commit is contained in:
parent
6a212e7a7e
commit
828d3cb667
1 changed files with 2 additions and 2 deletions
|
|
@ -411,13 +411,13 @@ export default {
|
|||
if(url.includes(":")){
|
||||
|
||||
// parse destination hash and url
|
||||
const [destinationHash, relativeUrl] = url.split(":");
|
||||
const [destinationHash, ...relativeUrl] = url.split(":");
|
||||
|
||||
// ensure destination is expected length
|
||||
if(destinationHash.length === 32){
|
||||
return {
|
||||
destination_hash: destinationHash,
|
||||
path: relativeUrl,
|
||||
path: relativeUrl.join(":"),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue