Page 1 of 1

Serious Alias Strip Bug of special char

Posted: Tue Aug 30, 2016 8:40 pm
by soamjena
We have a product with title,
HUAWEI S5720S-28X-SI-AC(24 ETHERNET 10/100/1000 PORTS,4 10 GIG SFP+,AC 110/220V)
On frontend, the URL shows this
And it goes to 404 not found.

I removed the + symbol from the SEO URL alias, and it instantly started to load.

But why is it so ?
Does that mean, Opencart code is not intelligent enough to strip the special characters from the alias ?

Or is it a bug ?

Re: Serious Alias Strip Bug of special char

Posted: Tue Aug 30, 2016 9:51 pm
by fido-x
soamjena wrote: But why is it so ?
Does that mean, Opencart code is not intelligent enough to strip the special characters from the alias ?

Or is it a bug ?
This is not a bug in OpenCart. There are characters that you can not use in SEO keywords, the plus sign (+) is one of them. Others include ampersands (&), question marks, percent signs and spaces. They have a different meaning in the URL address.

Re: Serious Alias Strip Bug of special char

Posted: Tue Aug 30, 2016 10:01 pm
by soamjena
Isn't it intelligent enough ti strip it out ?

Re: Serious Alias Strip Bug of special char

Posted: Tue Aug 30, 2016 10:16 pm
by OSWorX
soamjena wrote:Isn't it intelligent enough ti strip it out ?
No, it does not.

It is not a question of 'intelligence' - this is 'only' a (software) program.
But the user in front of the screen should use some intelligence not to use such characters.

Re: Serious Alias Strip Bug of special char

Posted: Tue Aug 30, 2016 10:19 pm
by fido-x
SEO keywords are not "stripped out", as you put it, or html_entity_decoded. If they were you would end up with something like "+" being placed in the URL address. Which wouldn't make it very search engine or user friendly or even usable as an address.

Re: Serious Alias Strip Bug of special char

Posted: Wed Aug 31, 2016 1:57 am
by soamjena
fido-x wrote:SEO keywords are not "stripped out", as you put it, or html_entity_decoded. If they were you would end up with something like "+" being placed in the URL address. Which wouldn't make it very search engine or user friendly or even usable as an address.

Okay if we dont enter anything in alias, then it should auto populate correctly, right ?

Re: Serious Alias Strip Bug of special char

Posted: Wed Aug 31, 2016 10:32 am
by fido-x
soamjena wrote: Okay if we dont enter anything in alias, then it should auto populate correctly, right ?
OpenCart does not "auto-populate" SEO keywords and never has.

Re: Serious Alias Strip Bug of special char

Posted: Wed Aug 31, 2016 11:03 am
by soamjena
No, I mean, the alias, not the keyword.

If we only put the title, will the alias auto populate ?

Re: Serious Alias Strip Bug of special char

Posted: Wed Aug 31, 2016 11:34 am
by fido-x
You are referring to the SEO URL that is defined for the product, yes?

You're calling it an "alias", while I'm calling it a "keyword". Either way, it is the same thing.

OpenCart does not auto-populate this. There is a 3rd party add-on that will do it (there are probably a few of them), but it is not a built-in function.