Export pid, xid and page title into environment.
Use notify url change callback to get the url.

This is a cleaner solution than tracking the new url on load commit.