cancel
Showing results for 
Search instead for 
Did you mean: 

Get current category or current product and then get its url in the other store store view

Get current category or current product and then get its url in the other store store view

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

And following example urls
example.com/en/car/van
example.com/de/auto/lieferwagen

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 (https://magento.stackexchange.com/questions/122318/get-page-url-from-current-page-different-store-vi...). But I need to solve this with Magento 2.