Lets avoid getting the history, splitting it, etc. if a pageId has been provided.