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:
parent
20c60e4de3
commit
54560050c6
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export default class MembersProvider extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render({apiUrl, children}) {
|
render({apiUrl, children}) {
|
||||||
const src = `${apiUrl}/members/gateway`;
|
const src = `${apiUrl}/static/gateway`;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{ children }
|
{ children }
|
||||||
|
|
|
@ -7,7 +7,7 @@ import Modal from './components/Modal';
|
||||||
export default class App extends Component {
|
export default class App extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
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 = {
|
this.state = {
|
||||||
apiUrl
|
apiUrl
|
||||||
|
|
Loading…
Add table
Reference in a new issue