So I have this weird problem.
I am calling
..from two different
view-layouts. And Joomla! is generating different SEF-URL based on which layout that I am calling the above code from.
What I expect is that, If I generate an SEF URL it should point to that same exact resource with same exact URL, no matter where I am calling this from, since everything is pretty specific. viz. the component name, the view name, and the layout name.