 
       %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,

      %Ecto.Association.BelongsTo{} ->
        if Map.get(assigns.record, assigns.for.owner_key) do
          Routes.databrowser_path(
            Endpoint,
              :show,
              Phoenix.Naming.resource_name(assigns.for.related),
              Map.get(assigns.record, assigns.for.owner_key)
