#HTMX for loading detail page not working

5 messages · Page 1 of 1 (latest)

sick badger
#

I am not sure what I am doing wrong. I am following a tutorial to implement this. I have also explored the htmx docs but this doesn't seem to work. When i inspect it it show an a tag which is empty.

            <img style="height: 10em; object-fit: contain;" src="{{ product.image_url }}" alt="An image of {{ product.name }}">
          </button>```
spiral anvil
#

What is the empty tag?
Did you inspect the network call?
Is it returning the proper html from the server?

sick badger
#

Sorry I am just responding. I was out all day yesterday.

#

It was returning an <a> tag but now I get that the issue is not with htmx cos it worked for my product-list page

#

So I am using meillisearch for search feature in the web app. So I created a product-detail partial so when the user clicks on the result of the search it takes them to the product-detail page. The issue seem to lie with meillisearch so I really don't know what I am doing wrong.