NO BUG: Query Loop Href shows wrong post url

Browser: Firefox
OS: Windows
URL: new.airomi.lt
Video: jam.dev/c/d19252e8-8cf4-4367-8288-1d900021c3b3

I have these structures:

  1. Header Template with custom minicart offcanvas, inside of which I render another bricks template as a shortcode.
  2. Minicart recommendations template, as seen in video just an accordion with query loop for products and using a component for consistent product display.
  3. Product display component, where I render a basic text with content β€œ{post_url}” and link to dynamic data β€œ{post_url}”. When it’s rendered, the content is correctly using the query loop post, but the href is just using the current page url.

The same component rendered for example in a query loop in a product template renders everything correctly. The issue does not appear to be because I use a shortcode thought, I put the content of mini cart recommendations directly to my header template and the issue persists.

Hey @RokasZ,

would it be possible for you to send us the header template and your bricks template that you render via offcanvas?

Or even better, if you can send temporary login credentials to your website and a link to this topic to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Thank you,
Matej

I sent the login to your email.

My custom query was missing this filter Filter: bricks/query/loop_object – Bricks Academy which was causing the products to not entirely have the correct context. Not a bug.