0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated auth-pages to use new members static url (#35)

refs https://github.com/TryGhost/Ghost/issues/10886

Since updating the static pages, the auth pages would be broken, this
updates them to correctly parse and load the static urls.
This commit is contained in:
Fabien O'Carroll 2019-07-09 15:49:05 +08:00 committed by GitHub
parent 20c60e4de3
commit 54560050c6
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ export default class MembersProvider extends Component {
}
render({apiUrl, children}) {
const src = `${apiUrl}/members/gateway`;
const src = `${apiUrl}/static/gateway`;
return (
<div>
{ children }

View file

@ -7,7 +7,7 @@ import Modal from './components/Modal';
export default class App extends Component {
constructor() {
super();
const apiUrl = window.location.href.substring(0, window.location.href.indexOf('/members/auth'));
const apiUrl = window.location.href.substring(0, window.location.href.indexOf('/static/auth'));
this.state = {
apiUrl