Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product redirect is not stored correctly in DB #36176

Open
2 tasks done
Prokopad opened this issue May 16, 2024 · 4 comments
Open
2 tasks done

Product redirect is not stored correctly in DB #36176

Prokopad opened this issue May 16, 2024 · 4 comments
Labels
8.1.x Branch Bug Type: Bug FO Category: Front Office New Products Page Label: Which BO under menu is concerned NMI Status: issue needs more information

Comments

@Prokopad
Copy link

Prerequisites

Describe the bug and add attachments

Hello,
it seems that I found bug in product page (BO). To exclude possible problems on our eshop, I have instaled new Prestashop for test purpose.
When you, on product page in back office, set Redirection page to Permanent redirection to a product (301) or Temporary redirection to a product (302) and select product and then save (
save )
, redirection type is not stored correctly.
When you reload product page in back office, it shows that it was set to Permanent redirection to category (
reload).

This bug is related to saving of product - I checked DB table ps_product and as you can se on picture
db, redirect_type is set to 301-category. id_type_redirect is stored correctly (id of selected product).

I also tried to switch to New product page (New & Experimental features) and when New product page is used, then redirection is stored correctly.

Best regards
Adam Prokop

Expected behavior

Correct redirection to product, not to category :-)

Steps to reproduce

  1. Go to Catalog / Products
  2. Select product that you want to edit
  3. Chose SEO
  4. Set redirection page to Permanent redirection to a product (301) or Temporary redirection to a product (302)
  5. Select product on which you want to redirect
  6. Save product
  7. Reload product

PrestaShop version(s) where the bug happened

8.1.5

PHP version(s) where the bug happened

7.3.33

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

Adam Prokop

@Prokopad Prokopad added Bug Type: Bug New New issue not yet processed by QA labels May 16, 2024
@Prokopad
Copy link
Author

I tried to go down thru versions and it seems that last version where redirection works correly is 8.0.5

@AureRita
Copy link
Contributor

Hi @Prokopad

Thank you for your report, currently I tried to reproduce your issue as you can see :

recording.207.webm

But I can't, did you disable your product ? Indeed the redirection is only when your product is disabled.
Can you provide us a video ?

Waiting for your feedback

@AureRita AureRita added Waiting for author Status: action required, waiting for author feedback NMI Status: issue needs more information 8.1.x Branch FO Category: Front Office New Products Page Label: Which BO under menu is concerned and removed New New issue not yet processed by QA labels May 20, 2024
@Prokopad
Copy link
Author

Hello @AureRita
thank you for your response. It seems that you have active New Product Page (from New and experimental features), where everything works fine.
Try to switch to "classical" product page and repeat steps like you do in video.

BTW: Is New Product Page stable enough to use it in production enviroment? If so, there is no problem and I can switch e-shop to New Product Page...

Best regards
Adam

@paulnoelcholot paulnoelcholot removed the Waiting for author Status: action required, waiting for author feedback label May 21, 2024
@Prokopad
Copy link
Author

Prokopad commented Jun 1, 2024

Hello,
here is video for this issue. As you can see, when you select redirect to product, in db is stored as redirect to category (and interpreted as redirect to category in fron office)
redirect_issue.webm

Best regards
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.1.x Branch Bug Type: Bug FO Category: Front Office New Products Page Label: Which BO under menu is concerned NMI Status: issue needs more information
Projects
None yet
Development

No branches or pull requests

3 participants