Why opening on a new tab?

This commit is contained in:
Vichingo455 2025-07-28 08:03:56 +02:00
parent 43e87cc813
commit 839e0bc32c
2 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,10 @@
<header>
<nav>
<ul>
<li><a href="index.html"><h1 style="font-size: 100%;font-weight: 500;">Home</h1></a></li>
<li><a href="/index.html"><h1 style="font-size: 100%;font-weight: 500;">Home</h1></a></li>
<li><a href="/ravenna_menu/ravenna.html"><h1 style="font-size: 100%;font-weight: 500;">Ravenna</h1></a></li>
<li><a href="/start_menu/start.html"><h1 style="font-size: 100%;font-weight: 500;">START Romagna</h1></a></li>
<li><a href="index.html"><h1 style="font-size: 100%;font-weight: 500;">Visualizzatore fermate</h1></a></li>
</ul>
</nav>
</header>

View File

@ -19,7 +19,7 @@ function populateSearchResults(results, selectedOption) {
div.addEventListener('click', () => {
const url = `fermata.html?palina=${encodeURIComponent(item.palina)}&targetID=${encodeURIComponent(item.targetID)}&selectedOption=${encodeURIComponent(selectedOption)}`;
window.open(url, '_blank');
window.open(url, '_self');
});
searchResultsContainer.appendChild(div);