πŸ’­ How to configure base url for all requests using HTMX? - Stack...

!https://stackoverflow.com/questions/69456875/how-to-configure-base-url-for-all-requests-using-htmx

Copy this post

Today I learned how to configure the baseurl for htmx using the tag. This is pretty handy to be able to configure different baseurls.

  <base href="<scheme>://<netloc>/api/v1/">
  <button hx-post="clicked"
       hx-trigger="click"
       hx-target="#parent-div"
       hx-swap="outerHTML">
    Click Me!
  </button>

Note

This post is a thought. It’s a short note that I make about someone else’s content online #thoughts

Connections

Related tags and posts connected to this entry.