Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin UI baseHref #993

Closed
michaelbromley opened this issue Jul 15, 2021 Discussed in #992 · 1 comment
Closed

Admin UI baseHref #993

michaelbromley opened this issue Jul 15, 2021 Discussed in #992 · 1 comment
Labels

Comments

@michaelbromley
Copy link
Member

Discussed in #992

Originally posted by BenVuti July 15, 2021
When trying to locally setup the compiling-as-a-deployment-step I ran into the issue of the /admin page being blank.

I tried modifying the <base href="/" /> to <base href="/admin" /> in the index.html file but it didn't fix the problem.

I then deleted the entire admin-ui folder, added the following line to the compileUiExtensions

compileUiExtensions({
    outputPath: path.join(__dirname, 'admin-ui'),
    baseHref: '/admin', // <----
    extensions: [/* ... */],
}).compile?.().then(() => {
    process.exit(0);
});

I rebuilt and tried to access the admin again, but the page remained blank.
By inspecting the source code of the page I can see that the baseHref is still "/"

@michaelbromley
Copy link
Member Author

I think this relates to #916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant