Product Categories & Products Getting Random insertion of "p" in URLs

  • Posts: 80
  • Thank you received: 0
8 years 4 months ago #268784

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : FFWIN64
-- Error-message(debug-mod must be tuned on) -- : No error - broken links

Some URLs for categories and products are getting a "p" inserted into the URL.

The result is that the Category clicked takes the user back to the top of the store. If a product, we get a product 404 error.

Do a search for "1921" and check "1921 Model T Center Door"

A whole lot of our products are no longer accessible to the public, and this is a horrible situation. What can we do to fix this problem?

Please Log in or Create an account to join the conversation.

  • Posts: 84430
  • Thank you received: 13730
  • MODERATOR
8 years 4 months ago #268786

Hi,

It's note random. It's because the product name starts with a number and that you've turned on the remove category and product ids from URLs setting.
Either turn off that option, or set an alias in your products which doesn't start with a number. Otherwise, it's going to be taken into account as the product id and not as part of the alias.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
8 years 4 months ago #268829

Okay, got it, thanks!

I hope you'll note this in the documentation. Fortunately not a lot of our products begin with a numeric value, and it is easy enough to fix this on the car models by moving their dates to the end.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
8 years 4 months ago #268836

We've fixed it for us, but it occurs to me that this is something that could heavily impact certain types of online stores. Automobiles would be one. Another might be antique dealers. There are probably more that use date based values.

You have a workaround, but this is still a problem that hopefully you can address.

Please Log in or Create an account to join the conversation.

  • Posts: 26284
  • Thank you received: 4046
  • MODERATOR
8 years 4 months ago #268947

Hello,

That workaround is an obligation in order to work with the Joomla routing system.
I'm afraid that we can't control something in the Joomla core which is not design to work that way. If it find a number, it will parse it as the "ID" (in our case, the product id) and target the page on that.
Hopefully, with the future Joomla router; such workaround might not be needed anymore.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum