Get current page seo url?

Hello :slight_smile:

How do I get the current page seo url?
I tried with:

[{$oView->getCanonicalUrl()}] but only works in categories,

then I tried:

[{ $oCont->getLink() }] but this only works on several pages.

Is there a possiblity to get dynamic page seo url on every page?

– update: I found an object with the correct information but how to get only the value?


the value link contains the correct link but I cant use ->link ??

Greez :wink:


ok i got it :wink:


thanks anyway.

This is not an exact answer to your question, but it has search engine relevance, so I’m going to add this here anyway:

in oxUBase there’s getPageTitle() which returns that last SEO-part of the URL, for example for named CMS pages or category pages. In smarty you can acces it by doing [{$oView->getPageTitle()}]