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

Fixed SEO tab not updating correctly after deleting a URL #4925

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

daguiler
Copy link
Contributor

@daguiler daguiler commented Dec 1, 2021

Fixes #4924

Summary

The S.E.O. view doesn't update correctly after changing the state because all automatic URLs are returned by the backend with the same id of -1. And this id property is used as the React component key, which needs to be unique.
This is a typical pitfall with React.

My fix consists of using the array index to generate a negative sequence so that the first automatic URL gets -1, the second -2 and so on.

Copy link
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

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

This appears to improve the behavior, thank you

@bdukes bdukes added this to the 9.10.3 milestone Dec 1, 2021
@bdukes bdukes merged commit 1c88947 into dnnsoftware:develop Dec 1, 2021
@daguiler daguiler deleted the bugfix/DNN-53213 branch December 1, 2021 14:23
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

awesome

@valadas valadas modified the milestones: 9.10.3, 9.11.0 Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SEO tab in Pages panel doesn't update correctly after deleting a URL
4 participants