Self.page.props.path onStartup

I am trying to get the path of the page using self.page.props.path on the event onStartup on either the view or the root of the view. The property seems to be the previous page when the onStartup event is triggered. Is there any way I can get the current page path onStartup?