fix: push route on start to make add course page app bar back button work as expected (#4430)

This commit is contained in:
ggurdin 2025-10-16 10:49:07 -04:00 committed by GitHub
parent 45a8711f0e
commit f12bcfd7e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,9 @@ class LoginOrSignupViewState extends State<LoginOrSignupView> {
mainAxisSize: MainAxisSize.min,
children: [
ElevatedButton(
onPressed: () => context.go(
// push instead of go so the app bar back button doesn't go to the language selection page
// https://github.com/pangeachat/client/issues/4421
onPressed: () => context.push(
_cachedSpaceCode != null
? '/home/language/signup'
: '/home/language',