GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Nesting Views: Entry Links Reload My Account Page with Missing Content

Open Mwalek opened this issue 7 months ago • 0 comments

NB: Related PR context: #2361 – Add support for third-party endpoints

When using nested Views inside membership-based pages (e.g., WooCommerce "My Account"), clicking on the View Single Entry or Edit Entry links from a nested View does not function correctly:

  • Clicking the Single Entry link results in the My Account page being reloaded with the message:

    "You are not allowed to view this content."

  • Clicking the Edit Entry link from the nested View reloads the My Account page with no View content rendered at all.

Steps to Reproduce

  1. Follow the test environment setup instructions in https://github.com/GravityKit/GravityView/pull/2361
  2. Create a GravityView View (My View had ID: 572) with Edit Entry and Link to Entry enabled.
  3. Use the following shortcode in the content of a parent View: [gravityview id="572" secret="55cc389390ab"]
  4. Embed the parent View on your custom WooCommerce "My Account" page.
  5. Click the Single Entry link or Edit Entry link inside the nested View.

Expected Behavior

  • Single Entry link should navigate to a valid entry-specific view page within the account context.
  • Edit Entry link should load the edit interface for the given entry, embedded within the My Account page, maintaining visibility of the View content.

Actual Behavior

  • Single Entry link causes the My Account page to reload with the error:

    "You are not allowed to view this content."

  • Edit Entry link causes the page to reload but no View or form is rendered.

Additional Context

Loom general walkthrough of the issues (same video linked on other related PR issues): Watch video

Mwalek avatar Jul 04 '25 09:07 Mwalek