(fix) content A: recognize relative paths

This commit is contained in:
kakkokari-gtyih 2023-07-18 01:42:42 +09:00
parent 11549f89ef
commit a73c7218cc

View File

@ -31,7 +31,11 @@ try {
} }
} catch(_) { } catch(_) {
if(realHref !== '') { if(realHref !== '') {
if (!realHref.startsWith('.') || !realHref.startsWith('http')) {
realHref = localePath(realHref); realHref = localePath(realHref);
} else {
realHref = '../' + realHref;
}
} }
} }
</script> </script>