Replies: 4 comments 2 replies
-
Isn’t the whole point of query parameters to send dynamic content? :) You can, as you know, configure them dynamically. |
Beta Was this translation helpful? Give feedback.
-
My appologies, I should clarify. The route doesn't use query parameters, it uses a path, such as |
Beta Was this translation helpful? Give feedback.
-
Your server could determine the clients date with a little extra information:
Throw an hx-include="#timeZone" on your element that has the hx-get and it should request /daily/2024/3/21?timeZone=America/Chicago |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestion to use The original problem still stands, I have a URL that uses a path instead of query parameters. Simple enough, except that |
Beta Was this translation helpful? Give feedback.
-
Is there a way to specify a dynamic URL for
hx-get
? I would ideally like to do something likehx-get="js:route(date)"
.The URL is determined by date and as we all know, dates and time zones are a pain in the ass. The current date on the server might not be the same on the client depending on time of day and time zones. Therefor the client needs to specify the URL but it appears
hx-get
only support static URLS.Beta Was this translation helpful? Give feedback.
All reactions