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

Url Path Change NavigateTo Fix - Fixes #3229 #3230

Closed
wants to merge 4 commits into from

Conversation

thabaum
Copy link
Contributor

@thabaum thabaum commented Sep 7, 2023

Fixes #3229

This PR is a solution that fixes the issue with navigation to the new page path URL when is it updated in location or when Url Path form field property is updated.

Added logic for when there is a ReturnUrl to check if the currentPath is the same as the _page.Path after being updated in the Admin/Pages/Edit.razor component.

If the _page.Path is different to use that instead of the ReturnUrl that has been passed.

The final commit simplifies it the most and just always sets the return url to the path. So either solution works on my end. I am going to leave it with the most simple version let you decide.

Hope this helps!

@sbwalker
Copy link
Member

sbwalker commented Sep 8, 2023

resolved in #3238

@sbwalker sbwalker closed this Sep 8, 2023
@thabaum thabaum deleted the patch-1 branch October 16, 2023 17:12
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.

Bug: Moving a page or renaming the "Url Path" results in 404 error page after saving in Admin/Page/Edit.razor.
2 participants