I have looked all over the internet, but can not find the following answer:
We want to get the part in Magento in .phtml after the main url so if:
domain.com/shoes.html we want to get only shoes.html
This is important because we have a multishop in .nl and .be and we want to use the hreflang. We need to give in both shops the url of both shops so as well from the .be and the .nl and then with the subcategory or product url.
In .phtml you can get the current url with: helper('core/url')->getCurrentUrl();?>
With that code you will get the total url so domain.com/shoes.html and we only want the part shoes.html
Would be great if someone knows the answer