Executing preHook() on router level