Revert "[BUGFIX] Analyse full root line of pages to know main/sub template"

This reverts commit ba76a479dcb9ccb6c1c34c1a8ea6c1c6bdff0a94.

The reverted commit breaks rendering of subpages that dont define their own action because the returned action used will be that of a parents page main action.