Skip to content

Preview / View Page: Clicking Visit Site Passes ?frame-nonce= string #41713

Open

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

  1. Starting at URL: WordPress.com
  2. Navigate to My Sites > Site > Pages
  3. Click ... > View Page next to a published and public page
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions