Jump to content
thirty bees forum
  • 0

URL with id_product does not work, needs id_lang


Question

Posted

Hi,

This seems like a bug to me. Is it truly one?

The URL shop.com/index.php?idproduct=50&controller=product&idlang=2 leads to the product, but the URL shop.com/index.php?id_product=50 does not, but the shop's homepage.

I would have expected the URL shop.com/index.php?id_product=50 to lead to the product page in the shop's default language, but not to the shop's homepage.

5 answers to this question

Recommended Posts

  • 0
Posted

have you tryed to do shop.com/index.php?controller=product&id_product=50

But why would you call the product via the id ? insted of using "Pretty URL's" ?

  • 0
Posted

That gives me this error:

[Debug] This page has moved Please use the following URL instead: shop.com/index.php?idproduct=50&controller=product&idlang=2

I'm calling mainly because it's easier to do bulk permanent redirects without pretty URLs

  • 0
Posted

I dont think it's a bug. Since when you work with multiple languages you have pretty urls like domain.com/en/product. Tough I am not 100% sure about.

If this is a good behaviour is another question...

  • 0
Posted

That gives me this error:

[Debug] This page has moved Please use the following URL instead: shop.com/index.php?idproduct=50&controller=product&idlang=2

Basically it figures what you want, but instead of redirecting immediately, it displays the redirection URL. This is probably by design.

I didn't try, but there's Backoffice -> Preferences -> SEO &URLs -> Set up URLs and inside this panel is a menu allowing to choose between 'No redirection', '302 moved temporarily' and '301 Moved permanently'. I'd try these three choices, looks like one of them should give what you want.

  • 0
Posted

@traumflug Yep, the "No redirection" worked for @bzndk's suggestion. Thank you!

Generally speaking, though: Having shop.com/index.php?id_product=57 should be enough for the system to figure out what product is intended.

In my old shop software, you could give a URL like that and depending on the user's browser settings, it would show one or the the other language.

As the default URL is shop.com/index.php?idproduct=50&controller=product&idlang=2, it makes sense to be able to simply cut off the parts after id_product=50 and not rearrange the URL (thinking of copy and pasting URLs to different pages).

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...