Fix page tabs for non-mainspace pages