diff --git a/lib/src/features/posting/ui/pages/recording_page.dart b/lib/src/features/posting/ui/pages/recording_page.dart index 888ae512..9282832b 100644 --- a/lib/src/features/posting/ui/pages/recording_page.dart +++ b/lib/src/features/posting/ui/pages/recording_page.dart @@ -634,9 +634,10 @@ class _RecordingPageState extends ConsumerState { ), ); - if (mounted) { - context.router.pop(); - } + if (!mounted) return; + // Exit the recording flow by dropping this page only; posting already + // unwinds the stack, so popping here would remove the page below. + context.router.removeRoute(context.routeData); } } catch (e, stackTrace) { _logger.e('Error processing video', error: e, stackTrace: stackTrace);