Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

publish button does not work with hlx3 #28

Closed
kptdobe opened this issue Jun 25, 2021 · 5 comments
Closed

publish button does not work with hlx3 #28

kptdobe opened this issue Jun 25, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@kptdobe
Copy link
Contributor

kptdobe commented Jun 25, 2021

Do the full setup of a site running with hlx3.
Go to page preview and hit the publish button, you are redirected to a 404 page.

Reason: the main branch name is missing in the URL.

cc @rofe

@kptdobe kptdobe added the bug Something isn't working label Jun 25, 2021
@rofe
Copy link
Contributor

rofe commented Jun 25, 2021

Can you confirm that the publish action worked, and it's just redirecting to the "wrong" URL afterwards?

@kptdobe
Copy link
Contributor Author

kptdobe commented Jun 25, 2021

The admin action post to /live responds 200 but the page is not up-to-date (if I update manually the url and add the branch name)

@rofe
Copy link
Contributor

rofe commented Jun 25, 2021

Ok, and when you curl -X PURGE it?

@rofe
Copy link
Contributor

rofe commented Jun 25, 2021

Looks like you were ahead of your time and using hlx3 before all the moving parts had a time to catch up 😉

I would suggest to use the following workaround:

  1. add a /tools/sidekick/plugins.js to your project
  2. add window.hlx.sidekick.config.outerHost = 'main--repo--owner.hlx.live'; to it

This will fix the broken redirect until the sidekick provides the fix - and should continue to work after that.

@rofe
Copy link
Contributor

rofe commented Jul 6, 2021

Should be fixed with #29.

@rofe rofe closed this as completed Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants