mplodowski / seomanager-plugin-public

https://octobercms.com/plugin/renatio-seomanager
https://octobercms.com/plugin/renatio-seomanager
4 stars 1 forks source link

Link policy ignored in currentUrl #8

Closed petehalverson closed 4 years ago

petehalverson commented 5 years ago

Fix for honoring the CMS link policy:

Set currentUrl to path (plugins/renatio/seomanager/components/SeoTags.php)

$this->page['currentUrl'] = request()->path();

Use twig app filter in component markup (plugins/renatio/seomanager/components/seotags/default.htm):

<link rel="canonical" href="{{ seoTag.canonical_url ?: currentUrl|app }}">
...
<meta property="og:url" content="{{ currentUrl|app }}">
mplodowski commented 4 years ago

Thanks! It will fixed in next build.