Issue #3472291 by eduardo morales alberti: Override the menu links on the pre render instead the preprocess
Closes #3472291