Jump to content

Error with product attribute - Friendly URL


stennnn

Recommended Posts

Hello guys,

 

I am really struggling here with a problem with the links of my website. It's not online yet, it's on localhost. 

I have friendly URL's on, and I have this for the product schema:

{category:/}{id}-{id_product_attribute}-{rewrite}.html

This is the default one. The problem is whener I open a product without attributes, it doesn't load the page, giving me an error 404.

For example:

http://localhost/top-garden/cigarros-eletronicos/76-326-ego-aio-joyetech.html#/44-cor-preto

This works fine because I've some attributes on the product.

But if I choose one product without attributes, the link appears like this and gives a 404 error:

http://localhost/top-garden/cigarros-eletronicos/77--pack-5-resistencias-bf-ss316-06ohm-joyetech.html

But, if I add a zero on the attribute it works...

Shouldn't it detect by itself and change?

http://localhost/top-garden/cigarros-eletronicos/77-0-pack-5-resistencias-bf-ss316-06ohm-joyetech.html

 

There is also one issue that started today which is, whenever I change the language, the link appears like this when it shouldn't. On the default language:

"localhost/top-garden/pt"

When I choose another language:

"http://localhost/top-garden/en/?controllerUri=index"

How do I fix this?

 

Thank you so much,

Hugo

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...