I have this div in index.html at C:xampphtdocsproyectindex.html:
<div class="splide__slide">
<div class="card card-style slide-1">
<div class="content mb-0">
<h1 class="text-center-editado-slide1">Bars&Restaurants</h1>
<p class="text-center-editado-subtitulo-slide1"> Descubrí propuestas
irresistibles para tu próxima salida </p>
<p class="boxed-text-xl-slide1-contenido mt-n3 font-14">
Salir a comer es un plan único, por eso reunimos varias propuestas para vos.
</p>
<a href="../whereTo/barsRestaurants.html"
class="btn btn-m btn-center-l rounded-s shadow-xl mb-4 btn-personalizado-1">
Ver opciones...
</a>
</div>
</div>
When I click the button, it opens the wrong page:
If I press F5, it then goes to the correct file:
This also happens in production, not only in XAMPP.
I don’t understand why the link works incorrectly on the first click, but correctly after refresh.
How can I fix this?