We have a site that features two languages, EN (primary/default) and JA. On one content page, we link to another node using it's
url('node/123'). In EN, this returns the alias and not the node based url. When in the JA language, this returns a url like
/ja/node/123 which then shows text in the EN variant when we expect JA. There are aliases set for both EN and JA, which both point to the same desired URL like:
/products/new-fancy-product and their respective node id urls. In EN,
url returns this alias correctly.
Also, if I change
/ja/products/new-fancy-product in the address bar, I get the correct JA version of the page as I want.
url not returning me the correct alias instead of the node id path, which then just shows EN content?