## Description
Refactoring focus strategy to get the correct key name on history
removal for all IDEs
Fixes [#39597](https://github.com/appsmithorg/appsmith/issues/39597)
## Automation
/ok-to-test tags="@tag.All"
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!TIP]
> 🟢🟢🟢 All cypress tests have passed! 🎉🎉🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/13811684497>
> Commit: ee66ead13719fbb882567cb2697af4cab10a5294
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13811684497&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Wed, 12 Mar 2025 14:19:55 UTC
<!-- end of auto-generated comment: Cypress test results -->
## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added an enhanced mechanism for generating unique navigation keys that
include branch details, improving focus state management.
- **Refactor**
- Restructured module organization to streamline focus history handling
and overall navigation state operations.
- **Chores**
- Simplified URL assignment for improved clarity and maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Hetu Nandu <hetu@appsmith.com>