Jump to content

Issue information

  • #005610


Issue Confirmations

  • Yes (0)No (0)
Reply
Photo

Seo Addon - Other Seo Url Format Is Not Working Properly

Posted by Party on 10 March 2015 - 03:42 AM

SEO addon - Other SEO URL format is not working properly


When I select “Other SEO URL format: /item” in SEO add-on; nothing has changed in front-end.

What exactly this option (/item) should do?


In my current cs-cart v4.2.1, this option selected with "/item” activates extension-less URLs. The URLs without “.html” and “/” forward slashes.


http://prntscr.com/6excg4


FYI, I have tested demo installed at http://forum.cs-cart...post__p__205049

Thank you for your message.

The Other SEO URL format setting influences the rest of the pages except for the products, categories and pages.

You can check the work of this setting, for example, on the registration page.

We also checked the work of this setting on the demo you specified: http://beta.kartpay.com/admin.php. Everything is working correctly there.

Please check this once again and let us know the result.

Thank you.


During the discussion we found out that the issue was with the slash which was displayed at the end of the SEO URL.

The slash has always been at the end of the SEO URL, but it was removed starting from CS-Cart v.4.2.1. After that by the request of some of our clients the slash was returned in CS-Cart v.4.2.2.
http://forum.cs-cart...59-seo-url-bug/


Thank you for clarification!

So I can simply apply this code below to my beta store (v4.3.1) in order to get extension-less URLs, right?




---------------------------------------------------------------------------------------------------------


Open "app/addons/seo/func.php" script and replace:



if (fn_check_seo_schema_option($seo_var, 'html_options')) {
$link_parts['extension'] = SEO_FILENAME_EXTENSION;
} else {
$link_parts['name'] .= '/';
}


with


if (fn_check_seo_schema_option($seo_var, 'html_options')) {
$link_parts['extension'] = SEO_FILENAME_EXTENSION;
}



and also


$link_parts['name'] .= 'page' . $d . $page . '/';


with


$link_parts['name'] .= '/page' . $d . $page . '/';



Yes, you can try the following solution:

Open the "app/addons/seo/func.php" script and replace:

if (fn_check_seo_schema_option($seo_var, 'html_options', $seo_settings)) {
        $link_parts['extension'] = SEO_FILENAME_EXTENSION;
} else {
        $link_parts['name'] .= '/';
}

with

if (fn_check_seo_schema_option($seo_var, 'html_options', $seo_settings)) {
        $link_parts['extension'] = SEO_FILENAME_EXTENSION;
}


and also

$link_parts['name'] .= 'page' . $d . $page . '/';

with

$link_parts['name'] .= '/page' . $d . $page . '/';

Thank you.



Add a Reply