Skip to content

fix: Redirect to Past Entries after saving journal entry#42

Merged
JustinhSE merged 2 commits intomainfrom
copilot/fix-journal-entry-redirect
Feb 25, 2026
Merged

fix: Redirect to Past Entries after saving journal entry#42
JustinhSE merged 2 commits intomainfrom
copilot/fix-journal-entry-redirect

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

After saving a journal entry, users were redirected to /dashboard instead of the Past Entries page, breaking the natural review flow.

Change

  • src/pages/Journal.tsx — Updated handleSubmit redirect target from /dashboard to /journal/entries
- navigate('/dashboard');
+ navigate('/journal/entries');
Original prompt

This section details on the original issue you should resolve

<issue_title>fix: Correct journal entry redirection </issue_title>
<issue_description>## Overview

Currently, after saving a new journal entry, the application redirects users to the home page (e.g., the entry creation page or dashboard). Instead, users should be redirected to the "Past Entries" page to review their saved entries immediately. This issue aims to correct the post-save redirect logic, improving user experience and workflow efficiency.

To-Do

  • Review the current redirect logic after saving a journal entry
  • Identify the correct route or URL for the "Past Entries" page
  • Update the redirect in the controller or handler responsible for saving entries
  • Test the new redirect behavior to ensure it works as expected
    </issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: JustinhSE <84724234+JustinhSE@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix journal entry redirection to past entries page fix: Redirect to Past Entries after saving journal entry Feb 25, 2026
@JustinhSE JustinhSE self-requested a review February 25, 2026 20:50
@JustinhSE JustinhSE marked this pull request as ready for review February 25, 2026 21:03
@JustinhSE JustinhSE merged commit 8816d3f into main Feb 25, 2026
2 of 3 checks passed
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.

fix: Correct journal entry redirection

2 participants