Skip to content

Commit

Permalink
Merge cc27c5b into da49f9b
Browse files Browse the repository at this point in the history
  • Loading branch information
Male Michael committed Feb 12, 2018
2 parents da49f9b + cc27c5b commit 56f508e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/js/components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ export default class Header extends Component {
getUri() {
this.state.locationTags.map((location) => {
let url = location.links[0].uri;
let arrUrl = url.split("/");
let arrUrl = url.split("/");
let applicationInUse = arrUrl[3].search('http:') == -1 ? arrUrl[3] : arrUrl[3].replace('http:', '');
let customUrl = `/${applicationInUse}/logout`;
let customUrl = `/${applicationInUse}/ws/rest/v1/session`;
this.setState((prevState, props) => {
return {
currentLogOutUrl: customUrl
};
});
return customUrl;

});
}

Expand Down Expand Up @@ -177,7 +177,7 @@ export default class Header extends Component {
}

logOut(event){
axios.get(this.state.currentLogOutUrl).then((response) => {
axios.delete(this.state.currentLogOutUrl).then((response) => {
hashHistory.push('/login')
})
.catch(error => {
Expand Down

0 comments on commit 56f508e

Please sign in to comment.