Redirect to LV page from html.eex

Hi, is posible redirect to LV page from html.eex? I have tried with link and redirect in the html but it gives an error.

Welcome!

Yes, can you share your code that’s giving you an error? It’s kind of hard, in this case, to totally understand your question/what’s going on without seeing an example of the problem.

Generally

  • make sure your routes are setup correctly
  • make sure you pass your @conn in the non-LV template
  • make sure your controller is configured correctly for the non-LV
  • make sure your LV is configured correctly and you are using your @socket now