*

abogoud

  • *
  • 3 posts
support url canonical
« on: June 30, 2016, 01:30:06 PM »
hello

check the head.php

Code: [Select]
<?php if( osc_get_canonical() != '' ) { ?>
  <link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/>
<?php ?>

Replace

Code: [Select]
  <link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/>
thanks

*

MB Themes

Re: support url canonical
« Reply #1 on: June 30, 2016, 01:49:54 PM »
@abogoud
Thanks for your tip, but actually if cannonical URL is empty, it would not be shown and I do not see reason to show empty URL...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

abogoud

  • *
  • 3 posts
Re: support url canonical
« Reply #2 on: June 30, 2016, 04:20:48 PM »
Hello

Replace this will work fine

Code: [Select]
<link rel="canonical" href="<?php echo 'http://' $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>"/>