radus Posted November 14, 2014 Share Posted November 14, 2014 Hi, I need to display page url like www.domain.com/page-url.html. If i use {$base_uri}{$request_uri} then result is www.domain.com//page-url.html , having an additional [ un-needed ] slash "/" Is there a solution ? What I want to achieve is to display friendly url and mark every page with schema.org so that I get indexed by Google along with correct Similar Pages. <div itemscope itemtype="https://schema.org/WebPage"> <meta itemprop="url" content="http://www.winerepublic.ro/" /> <meta itemprop="url" content="{$base_uri}{$request_uri}" /> <link itemprop="relatedLink" href="http://www.wine.com" /> <link itemprop="relatedLink" href="http://www.wine-searcher.com/" /> </div> Many thanks, R Link to comment Share on other sites More sharing options...
eleazar Posted November 14, 2014 Share Posted November 14, 2014 (edited) Your solution: {$base_uri}{$request_uri|replace:"/":""} Edited November 14, 2014 by eleazar (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now