I prepared my menu locally with a different domain and ended up with non working links after deploying.
I tried to solve it in my template something like this: $navigation->id() ?? $navigation->url() but for external links id() is an index number, so that's not working. (I guess one could test against the current host)
I prepared my menu locally with a different domain and ended up with non working links after deploying.
I tried to solve it in my template something like this:
$navigation->id() ?? $navigation->url()
but for external links id() is an index number, so that's not working. (I guess one could test against the current host)Is there a better way to work around that?
And how to handle multi lang menus? Building two?