Skip to content

fix(UX): path replacement after save#225

Merged
perber merged 1 commit intomainfrom
fix/redirect-issue-after-save
Oct 24, 2025
Merged

fix(UX): path replacement after save#225
perber merged 1 commit intomainfrom
fix/redirect-issue-after-save

Conversation

@perber
Copy link
Owner

@perber perber commented Oct 24, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 24, 2025 08:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a UX issue with path replacement after saving a page in the editor. The change ensures that paths are correctly constructed by handling cases where the parent path may already contain a leading slash, preventing double slashes in the final URL.

  • Prevents double slashes in constructed paths by conditionally removing leading slashes from parent paths
  • Replaces direct string concatenation with conditional logic for more robust path construction

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@perber perber merged commit 8be4d16 into main Oct 24, 2025
4 checks passed
@perber perber deleted the fix/redirect-issue-after-save branch October 24, 2025 09:02
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.

2 participants