From 93c1b2e826c870e3c2b3e469e33d4f2a5311f2da Mon Sep 17 00:00:00 2001 From: diminator Date: Thu, 25 Jun 2015 15:25:34 +0200 Subject: [PATCH] login location with baseurl --- js/components/login_container.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/components/login_container.js b/js/components/login_container.js index 8c149d8c..d4085540 100644 --- a/js/components/login_container.js +++ b/js/components/login_container.js @@ -10,6 +10,7 @@ import Form from './ascribe_forms/form'; import Property from './ascribe_forms/property'; import apiUrls from '../constants/api_urls'; +import AppConstants from '../constants/application_constants'; let LoginContainer = React.createClass({ @@ -45,7 +46,7 @@ let LoginForm = React.createClass({ Users on Stack Overflow claim this is a bug in chrome and should be fixed in the future. Until then, we redirect the HARD way, but reloading the whole page using window.location */ - window.location = '/collection'; + window.location = AppConstants.baseUrl + '/collection'; }, render() {