GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

[gv_entry_link] Displays Same Page Content Instead of Single Entry When Used After [gravityview] Shortcode

Open Mwalek opened this issue 7 months ago • 0 comments

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

When using the [gv_entry_link] shortcode after a [gravityview] shortcode inside a Custom Content field, the link does not load the correct single entry content. Instead, it reloads the current page with the same View content, as if no entry context was provided.

This suggests that the endpoint or URL handling logic fails to route properly when the link is rendered after the View initialization.

Steps to Reproduce

  1. Follow the test environment setup instructions in https://github.com/GravityKit/GravityView/pull/2361
  2. Add a Custom Content field with the following content (replace view ID and secret with your own) to the View Embeded on your custom WooCommerce "My Account" page:
[gravityview id="572" secret="55cc389390ab"]

[gv_entry_link]
  1. Open your custom WooCommerce "My Account" page

Expected Behavior

  • The link should navigate to the correct single entry view for the given entry ID.

Actual Behavior

  • The page reloads with the same content as before — the View does not change and no entry-specific content is displayed.

Additional Context

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

Mwalek avatar Jul 04 '25 10:07 Mwalek