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

Link for gutenberg-starter-theme-blocks seems to have errors in local environment #27

Closed
xiazixin opened this issue Feb 28, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@xiazixin
Copy link

I had my test environment in http://localhost/wcms_project/wordpress/ as home page.
when I click on the home button, it went to http://localhost and not http://localhost/wcms_project/wordpress/.

@xiazixin
Copy link
Author

didn't try the other themes, yet to see the problem persist

@kjellr kjellr added the bug Something isn't working label Feb 28, 2020
@kjellr
Copy link
Collaborator

kjellr commented Feb 28, 2020

Hey there! Thanks for testing. Yeah, this is an issue with all the themes. The navigation block can't currently include a smart link to something like home_url() at the moment, so these themes have to guess a URL with something like this:

<!-- wp:navigation-link {"label":"Home","title":"Home","type":"page","url":"/"} /-->

Depending on your hosting config, this will either work or it won't. 😕

I've opened a Gutenberg bug so this can hopefully be built in upstream:

WordPress/gutenberg#20542

Once that's resolved, we'll work to incorporate it in these themes. In the meantime, I'm going to close this issue so we can follow along on the new one.

Thanks again!

@kjellr kjellr closed this as completed Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants