BartekHC Posted February 5, 2019 Share Posted February 5, 2019 (edited) When we have a tag composed of two words "car ford" - url does not work. http: //localhost/smartblog/tag/car%20ford.html - error 404 is created When we have one word in the tag, e.g. "car" everything works correctly:http://localhost/smartblog/tag/car.html How should I unhook this problem? Edited August 26, 2021 by BartekHC (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 6, 2019 Share Posted February 6, 2019 The %20 means space. Did you try to replace space with dash? Link to comment Share on other sites More sharing options...
BartekHC Posted February 7, 2019 Author Share Posted February 7, 2019 Creates a url http://localhost/smartblog/tag/car%20ford.html - but it creates a 404 error When the tags are split - example "car-ford" it works. But it looks ugly on the page as it is divided. Link to comment Share on other sites More sharing options...
brunobragaw8t Posted July 19, 2021 Share Posted July 19, 2021 I'm using version 2.0.1 and this still hasn't been fixed. I found the problem and here's the fix. On the following file: modules/smartblog/smartblog.php There should be a line where the module "searches" the URL with a regex. On my version, it's on the line 274. 'tag' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'tag'), Just add a space: 'tag' => array('regexp' => '[_a-zA-Z0-9-\pL ]*', 'param' => 'tag'), And it worked for me. Marking this topic as solved would help someone find this in the future! Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 20, 2021 Share Posted July 20, 2021 @brunobragaw8t Which version of Smartblog you are using we have release version 4.x for 1.7 where this kidn of error is fixed and update new desing. did you checked. https://classydevs.com/free-modules/smartblog Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now