set $result->{type} = 'page' on success