include all remaining parts after relative url

This commit is contained in:
liamcottle 2024-09-23 00:41:53 +12:00
commit 828d3cb667

View file

@ -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(":"),
};
}