Trigger event when loading new page.
Honor current port number in URLs.