Using Bootstrap v3.3.5
I have a webpage that is using the url domain.com/companies
This is my trigger for the modal in that webpage.
<a href="#modal-add-company" class="btn btn-effect-ripple btn-effect-ripple btn-success" data-toggle="modal"><i class="fa fa-plus"></i> New Company</a>
This will successfully trigger this modal
<div id="modal-add-company" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
However, the url does not change to domain.com/companies#modal-add-company
Nor does the url domain.com/companies#modal-add-company
actually trigger the modal on reload.
What do I need to do to have the following:
- change the url to
domain.com/companies#modal-add-company
whenever I trigger the modal and the modal is shown, and - if i directly type the url
domain.com/companies#modal-add-company
, the modal is shown