Gutenberg “View post” and “Preview” links not working with browsersync
-
I’m doing some local Gutenberg development, using browsersync.
The Classic editor, on rendering the edit screen for a page, shows the permalink correctly as
//localhost:3000
– as the interception and rewriting of the dev URL happens on render of the HTML. If I edit the page and it shows “Post Updated” then the link goes correctly to//localhost:3000/my-page/
.In Gutenberg, this does not happen. The URLs remain as the dev site URL, meaning that the View Post URLs, and the Preview buttons don’t work – they take you away from the browsersync enabled development environment.
This is obviously because those URLs are being generated and injected directly by Javascript rather than rendered in the page HTML. I just don’t know how to resolve it.
Does anyone know if there’s a way round this?
- The topic ‘Gutenberg “View post” and “Preview” links not working with browsersync’ is closed to new replies.