Moved triggerErrorPage from app to router component