angular-ui/bootstrap — pull request #1334 by ubenzer (2013-12-02 08:58:04+00:00)
Title: feat(modal): prevent location change if modal is open

You are in a state that modal is open. User accidentally clicks back
button on the browser. You use a state manager, for example ui-router,
so page transition happens, without page refresh. Now, you have a
completely different page, completely different state, but you have
modal open.

This PR prevents URL change if modal is open.