Redirect to url with bootstrap tabs 4

Asked

Viewed 157 times

1

I have this html code using 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>&nbsp; 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 exactly the #Nav-pictures tab, but it’s not working, this code.

When I click it redirects to the page retorno.php more does not go to tab Nav-photos

  • 1

    Thus putting: retorno.php##nav-fotos doesn’t work?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.