Let's say we have two store views: en and de.

And following example urls

When we are at a category or product page how do we get the url of the same category or product in another store view?

So let's say we have this: example.com/en/car/van

and we want get that: example.com/de/auto/lieferwagen

I know there are solutions for M1 (Get page URL from current page, different store-view). But I need to solve this with Magento 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.