 
       %Ecto.Association.Has{} ->
         Routes.databrowser_path(
-          assigns.socket,
+          Endpoint,
           :has_many,
           Phoenix.Naming.resource_name(assigns.for.owner),
           assigns.record.id,


      %Ecto.Association.ManyToMany{} ->
        Routes.databrowser_path(
          assigns.socket,
          :many_to_many,
          Phoenix.Naming.resource_name(assigns.for.owner),
          assigns.record.id,

  use Surface.Component
  alias Surface.Components.LiveRedirect
  alias PanWeb.Router.Helpers, as: Routes
  alias PanWeb.Endpoint

  prop(for, :map, required: true)
  prop(record, :map, required: true)
