I want to redirect the user to the same page but show the tab "#myRegistrations" as active when the user click in the "#myRegistrationsClean". 

But with the code below the user is redirected to the same page but the #myRegistrations tab dont stay active. This is beacuse the code below just refreshes the page like "window.location.reload();". 

Do you know how to redirect to the same page but with the "#myRegistrations" active? The url that turns the "myRegistrations" tab to active is "<http://proj.test/user/profile?user=2#myRegistrations>".

```
$('#myRegistrationsClean').click(function() {
    alert("test");
    @if(session('searchedConferences'))
        // $('#cleanSearch').click(); dont works
        window.location.reload();
    @endif
});

```