Switched PageType restrictions to routename instead of treescope