Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit fe8c3760 authored by Akhil's avatar Akhil
Browse files

Change lang to query param

parent 7f7b8812
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ return ['routes' => [
		'url' => '/issue/submit', 'verb' => 'POST'
	],
	
	['name' => 'account#index', 'url' => '/accounts/{lang}/signup', 'verb' => 'GET'],
	['name' => 'account#index', 'url' => '/accounts/signup', 'verb' => 'GET'],
	['name' => 'account#create', 'url' => '/accounts/create', 'verb' => 'POST'],
	['name' => 'account#captcha', 'url' => '/accounts/captcha', 'verb' => 'GET'],
	['name' => 'account#verify_captcha', 'url' => '/accounts/verify_captcha', 'verb' => 'POST'],
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ export default {
			}
		},
		onLanguageChange() {
			window.location.href = window.location.origin + '/apps/' + APPLICATION_NAME + '/accounts/' + this.formData.selectedLanguage + '/signup'
			window.location.href = `${window.location.origin}/apps/${APPLICATION_NAME}/accounts/signup?lang=${this.formData.selectedLanguage}`
		},
	},
}