Jump to content

is it bugs? 404 - Page Not Found


chongshengdz

Recommended Posts

my manually entered product Custom SEO URL Path is different from the breadcrumbs and alternate tags (<link rel="alternate") on the product detail page.

for example.

i manually entered

category/product-detail-

it will only show on breadcrumbs and alternate tags (<link rel="alternate") on the product detail page as below:

category/product-detail

and the product will become not found when you click on breadcrumbs or change languages.

how to fix this?

please help.

 

Link to comment
Share on other sites

CubeCart will auto-generate a Custom SEO URL Path unless you enter something of your own specification. In admin, Edit Product, Search Engines tab, enter your own path. It can be anything, but must begin and end with a letter or number.

 

Link to comment
Share on other sites

I understand you have a need to have trailing dashes.

This edit may work. To prevent CubeCart from "trimming" leading and trailing dashes, then in /classes/seo.class.php:

Near the end of the file, find:

private static function _safeUrl($url) {

Then, seven lines later, find:

return trim($url,'-');

Change this line to:

return $url; // trim($url,'-');

 

Link to comment
Share on other sites

1 hour ago, bsmither said:

I understand you have a need to have trailing dashes.

This edit may work. To prevent CubeCart from "trimming" leading and trailing dashes, then in /classes/seo.class.php:


Near the end of the file, find:

private static function _safeUrl($url) {

Then, seven lines later, find:

return trim($url,'-');

Change this line to:

return $url; // trim($url,'-');

 

thanks,it woks great.

the problem has been resolved.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...