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:
and we want get that:
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.