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

Slug updated twice #333

Merged
merged 4 commits into from Mar 8, 2021
Merged

Slug updated twice #333

merged 4 commits into from Mar 8, 2021

Conversation

ValJed
Copy link
Contributor

@ValJed ValJed commented Mar 1, 2021

With workflow, when we commit a page move, the slug is updated using the draft one in workflow. Then it calls the self.move method of apostrophe-pages, inside the slug is updated again.
This behavior produces bad slugs by duplicating it, example /block-page/sub-page becomes /block-page/block-page/sub-page.

@ValJed ValJed requested a review from boutell March 1, 2021 18:06
Copy link
Contributor

@abea abea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the Apostrophe core peerDependencies version should be updated to the version where you fixed it in core.

Copy link
Member

@boutell boutell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

peerDependencies could be left alone because it works as well as before if apostrophe is not updated, but I think it is worth updating it.

Otherwise great.

@ValJed
Copy link
Contributor Author

ValJed commented Mar 2, 2021

PeerDependencies for apostrophe has been upgraded.

@ValJed ValJed merged commit 5c8e4e3 into main Mar 8, 2021
@ValJed ValJed deleted the slug-updated-twice branch March 8, 2021 13:43
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.

None yet

3 participants