I have this html code using the bootstrap tabs:
<div class="tab-pane fade" id="nav-fotos" role="tabpanel" aria-labelledby="nav-fotos-tab">
<br>
<div class="container">
<button type="button" class="form-group btn btn-info" data-toggle="modal" data-target="#cadastraFoto">
<span class="fas fa-plus"></span> Incluir
</button>
</div>
<div class="container">
<div class="read_content" id="read_content"></div>
</div>
</div>
And a redirect in PHP,
$redirect = "retorno.php?id=" . $id . "#nav-fotos&deleted";
header("location:$redirect");
I need this redirect to go to exactly the # nav-photos tab, but that's not working, that code.
When I click it it redirects to the page retorno.php
more does not go to nav-photos tab