Skip to content

Commit

Permalink
strips / from main url (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaphetKG authored Jun 11, 2021
1 parent 0d7bb58 commit 980e765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class App extends Component {
}
if(process.env.NODE_ENV === 'production') {
// behind proxy this would treat the path used to load index.html as root
this.tranqlURL = window.location.href;
this.tranqlURL = window.location.href.endsWith('/') ? window.location.href.substring(0, window.location.href.length - 1 ) : window.location.href.length ;
}
//this.tranqlURL = window.location.origin;
//this.tranqlURL = "http://localhost:8001"; // dev only
Expand Down

0 comments on commit 980e765

Please sign in to comment.