# Bug MEET-621 - Unsaved agenda item title is lost on Turbo navigation

Project: Stream Meetings
Status: closed
URL: https://community.openproject.org/work_packages/MEET-621

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Meetings |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Found while reviewing <mention class="mention" data-id="OP-20797" data-type="work_package" data-text="#OP-20797">#OP-20797</mention>, which moves the `g` keyboard shortcuts to Turbo navigation.

### Steps to reproduce

1.  Open a meeting with at least one agenda item, as a user who can edit the agenda.

2.  Start editing an agenda item and change only its title. Do not save.

3.  Leave the page through any link that Turbo handles, for example **My page** in the header, an entry of the project menu, or the `g m` keyboard shortcut.

### What is the buggy behavior?

The page changes without a warning and the unsaved title is lost.

### What is the expected behavior?

Leaving the page by a Turbo visit asks for confirmation, as a full reload or closing the tab does.

### **Logs**

None.

### Screenshots and other files

None.

### Technical notes

The meeting page checks its agenda forms for unsaved text (`hasUnsavedChanges()` in `meetings-helpers.ts`) only on `beforeunload`, from the meetings `submit` controller. Turbo Drive is enabled application-wide, and a Turbo visit does not fire `beforeunload`. The global Turbo guard (`turbo:before-visit` in the `beforeunload` controller) checks `OpenProject.pageHasUnsavedChanges`, which does not include the meeting check.

### Environment information

**OpenProject version**

**Core build**

[04cf449f4197460d2edc0c6f9542502177212daf](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2F04cf449f4197460d2edc0c6f9542502177212daf)

**Product version**

[cbe4084653431a373f2e34d091ae09821d31819b](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Fcbe4084653431a373f2e34d091ae09821d31819b)

**Core version**

OpenProject 18.0.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari

**Language**

English
