pagination fix - will clear stored page when path has changed