external links go to _blank

This commit is contained in:
Henri
2026-02-24 05:30:28 +02:00
parent 4a452e9793
commit e7162a8d0e
2 changed files with 11 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ export function navigate(path, options = {}) {
const { external = false } = options;
if (external) {
window.location.href = path;
window.open(path, '_blank', 'noopener,noreferrer');
} else {
window.history.pushState({}, "", path);
window.dispatchEvent(new PopStateEvent('popstate'));