Opened 5 years ago
Closed 11 months ago
#53134 closed defect (bug) (reported-upstream)
Keep current URL domain for View Post on View Post link
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | minor | Version: | 5.7.1 |
| Component: | Editor | Keywords: | close |
| Focuses: | administration | Cc: |
Description
Hello,
I am using BrowserSync to proxy my remote site to https://localhost:3000 on my local machine through ssh forwarding. I have noticed that the localhost domain name is reverted to my site real domain on the backend for the 'View Post' link, when updating a post using Gutenberg. This behavior does not happen with the classic editor.
It would be great if the 'View Post' link could retain the localhost domain on post update.
Steps to reproduce:
1) Run BrowserSync or equivalent as proxy
2) Open post for edit on backend on localhost domain
3) Check 'View Post' link, it should have localhost as domain
4) Click 'Update' or 'Publish'
5) Check 'View Post' link again and it will now have the site domain instead
Classifying as bug as the behavior deviates from what the classic editor does.
Change History (4)
#2
@
5 years ago
- Summary changed from Feature Request: Keep current URL domain for View Post on View Post link to Keep current URL domain for View Post on View Post link
That's very possible. Wondering if this is maybe a Gutenberg issue instead of WordPress core. Not sure how the two interact at this level.
#3
@
5 years ago
Similar report on GitHub:
https://github.com/WordPress/gutenberg/issues/31514
#4
@
11 months ago
- Keywords close added
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
For now, I think the best approach is to close this and focus on the report within the github repo. We can always add to that and that ensures that it keeps insights there. Thank you everyone for your collaboration on this.
Hi there, welcome back to WordPress Trac! Thanks for the report.
Could it be because the View Post link in the block editor is updated dynamically, without a page reload? In the classic editor, clicking the Update button did cause a page reload.