Closed jcogs-design closed 5 months ago
It appears that the rogue character being left in the url_title
is the asterisk. The following code applied after the urlSlug
call seems to fix the issue...
// Clean up url_title
$stop_characters = ['*'];
$url_title = str_replace($stop_characters, '_', $url_title);
Description of the problem Am auto-generating
This generates url_title elements such as `acrandjute30m-acoustix-jute-randstrook-30-lm*5mm*100mm-uitlopend` from a source string of `ACRANDJUTE30M-Acoustix jute randstrook 30 lm*5mm*100mm uitlopend`. Unfortunately this url_title fails to validate - this is the result of validating a new channel entry using this url_title This appears to be a bug. **How To Reproduce** Hopefully the above explanation is clear enough. **Environment Details:** - Version: 7.4.5 - PHP Version 8.1.13 - MySQL Version MariaDb 10.4.27 - Web Server: nginxurl_title
elements for channel entries in an add-on. Using the following to generate theurl_title
element