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

Fix: Changing the permalink before publishing a product results in "not found" #3748

Merged
merged 2 commits into from
Mar 5, 2018

Conversation

prinzdezibel
Copy link
Contributor

@prinzdezibel prinzdezibel commented Feb 14, 2018

Issue

Closes #3858

If the permalink of a product is changed, but not published yet, the permalink is assembled with the new (yet unpublished) handle, which leads to the PDP rendering a "Not found" template.
See this animated gif:
unpulished_notfound

What it does:

  • Prevent unpublished handle changes to be used when assembling a link
    URL to PDP.

What is does not:

Solution

If a product has unpublished changes, they published state is in
products.__published. Use that for building the perma-link from
products.__published.handle.

Impact: major
Type: bugfix

Breaking changes

not known

Testing

  1. As a admin, create a new product
  2. Change the handle (permalink)
  3. Do not publish
  4. navigate to product grid
  5. navigate into PDP again
  6. The product detail page should be shown correctly

What it does:
- Prevent unpublished handle changes to be used when assembling a link
URL to PDP.

What is does not:
- Ensure that the "not found" template is rendered in certain situations
(which I don't know what these are exactly) AFTER publishing a product.

How it does that:
If a product has unpublished changes, they published state is in
products.__published. Use that for building the perma-link from
products.__published.handle.

Adresses not the problem of the "not found"
@prinzdezibel prinzdezibel self-assigned this Feb 14, 2018
@prinzdezibel prinzdezibel requested review from jshimko and removed request for spencern February 27, 2018 15:56
@prinzdezibel prinzdezibel changed the title Partial fix for #2249. Fix: Changing the permalink before publishing a product results in "not found" Feb 28, 2018
@reactioncommerce reactioncommerce deleted a comment from aaronjudd Feb 28, 2018
@prinzdezibel
Copy link
Contributor Author

@jshimko This is a quick one-liner, let's move that through. thanks.

@spencern spencern changed the base branch from master to release-1.9.0 March 5, 2018 16:35
@spencern spencern merged commit 872aafd into release-1.9.0 Mar 5, 2018
@spencern spencern deleted the fix-2249-partial-fix-for-product-not-found branch March 5, 2018 16:38
@spencern spencern mentioned this pull request Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants