Author Topic: Virtuemart is adding /results%2C1-0 to the url  (Read 3048 times)

Kuubs

  • Jr. Member
  • **
  • Posts: 446
Virtuemart is adding /results%2C1-0 to the url
« on: March 22, 2023, 09:21:22 AM »
Hello,

I am using Virtuemart 4.0.12 and Joomla 3.10.11.  When the URL of the Category is being made for some reason it adds the results 1,0 in the url. I want to not have this. How can I fix this?


I use a simple regex to remove the results form the url:

$newText = preg_replace('/\bresults\b.*$/', '', $text);

This will give trouble tho if you have a category name with results in it

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28746
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.2.5 10924 J! 3.10.11 PHP 8.2.7