fix: push route on start to make add course page app bar back button work as expected (#4430)
This commit is contained in:
parent
45a8711f0e
commit
f12bcfd7e5
1 changed files with 3 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue