Adding a link that redirects to same, non-liveview controller action, with an updated params list

For my current Liveview-less (plain+simple) Phoenix project, I have associated a data attribute to one of the DOM elements (a text input) of my view (template).

I would like to set thinks up such that a controller action (say, :index) be invoked with an updated params list, one that includes the data attribute key/value of said element.

Is there a way to do this?

I considered relying on a socket push to some room channel module but couldn’t find a way to hook that up to my controller (should I even?) .


You might be able to use a form with method="GET" like in Tryit Editor v3.7.