Description
Some users visit specific pages by going to My Site > Site > Pages, clicking ..., and selecting Preview. They then click Visit Site to see the page normally in their browser.
The Visit Site button appears to be passing along the ?frame-nonce=
preview string which can cause issues or unexpected behavior.
Reproduced across Atomic and Simple
Steps to reproduce
- Starting at URL: WordPress.com
- Navigate to My Sites > Site > Pages
- Click
...
> View Page next to a published and public page - Click Visit Site
Visit Site passes along the frame preview string instead of just using the regular link.
Example: DOMAIN/contact/?frame-nonce=60c5d73fb1
instead of DOMAIN/contact/
This may sometimes cause links to other pages/posts and anchors to break which confuses the user and makes them think their site is broken. This also may lead to the user copying and using URLs with the frame preview string when creating links and buttons.
What I expected
The Visit Page button to direct to the regular URL without the ?frame-nonce
string.
What happened instead
?frame-nonce
is present.
Browser / OS version
Tested across the latest versions of Chrome, Safari, and Firefox
Context / Source
User report, HE discussion
p1588343966053700-slack-wpcom-support
#user-report