diff --git a/app/components/LoginForm.jsx b/app/components/LoginForm.jsx index 4faa90d..c19708c 100644 --- a/app/components/LoginForm.jsx +++ b/app/components/LoginForm.jsx @@ -1,4 +1,5 @@ import React, { PropTypes } from 'react'; +import { toString } from 'lodash'; import { requestLogin } from 'actions/session'; import Icon from 'components/Icon'; import styles from 'css/components/form'; @@ -16,7 +17,7 @@ export default class LoginForm extends React.Component { this.state = { user: '', password: '', - url: window.location.origin, + url: toString( localStorage.getItem( 'ttrssBaseUrl' ) ) || window.location.origin, }; this.handleChange = this.handleChange.bind( this );