Getting translated URLs
Say I have a CMS page
/aboutand a Spanish translation for it with the slug
Is there a front-end method to get each URL? E.g. I am viewing the site in
enand want to get the
/about, which would be
/acerca, and visa-versa?
I've read how to get translated routes, but can't find anything about translated CMS pages/slugs.
OK, just realised I can do
$page->getTranslation('es')->slugto get a translated URL/slug for the current page, but what if I'm not on that page, what if i'm on the homepage and want to get the translated URL for the