homebase-app
homebase-app copied to clipboard
Fix: "Back to community" button navigation in Lite proposal details
Problem
The "Back to community" button in Lite proposal details was always navigating to the Lite DAO view, even when users accessed the proposal from a V3 DAO's Off-Chain proposals tab. This created a confusing user experience where clicking the back button would take users to a different DAO interface than they started from.
Navigation flow before fix:
V3 DAO (/explorer/dao/{daoId})
→ Click Off-Chain Proposal
→ Lite Proposal Details
→ Click "Back to community"
→ ❌ Always redirects to Lite DAO view (/explorer/lite/dao/{id}/community)
Solution
This PR fixes the navigation by passing context about the originating DAO through React Router's location state. When a user navigates to a lite proposal from a V3 DAO, we now track the V3 DAO's ID and use it to navigate back to the correct view.
Navigation flow after fix:
V3 DAO → Off-Chain Proposal → Click "Back to community" → ✅ Returns to V3 DAO
Lite DAO → Proposal → Click "Back to community" → ✅ Returns to Lite DAO
Fixes #916
Deploy Preview for tezos-homebase ready!
| Name | Link |
|---|---|
| Latest commit | f92b6f4b96ff65d8dd7d863cfcbaf4332657a279 |
| Latest deploy log | https://app.netlify.com/projects/tezos-homebase/deploys/692f0543d9c70e00083389b4 |
| Deploy Preview | https://deploy-preview-922--tezos-homebase.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
Lighthouse |
1 paths audited Performance: 30 (🟢 up 1 from production) Accessibility: 91 (no change from production) Best Practices: 100 (no change from production) SEO: 92 (no change from production) PWA: 70 (no change from production) View the detailed breakdown and full score reports |
To edit notification comments on pull requests, go to your Netlify project configuration.
