diff --git a/lib/pleroma/web/fallback/redirect_controller.ex b/lib/pleroma/web/fallback/redirect_controller.ex
index 6f759d559..712991c18 100644
--- a/lib/pleroma/web/fallback/redirect_controller.ex
+++ b/lib/pleroma/web/fallback/redirect_controller.ex
@@ -37,9 +37,11 @@ def redirector_with_meta(conn, params) do
tags = build_tags(conn, params)
preloads = preload_data(conn, params)
+ title = "
#{Pleroma.Config.get([:instance, :name])}"
response =
index_content
+ |> String.replace(~r/.+?<\/title>/, title)
|> String.replace("", tags <> preloads)
conn
@@ -54,9 +56,11 @@ def redirector_with_preload(conn, %{"path" => ["pleroma", "admin"]}) do
def redirector_with_preload(conn, params) do
{:ok, index_content} = File.read(index_file_path())
preloads = preload_data(conn, params)
+ title = "#{Pleroma.Config.get([:instance, :name])}"
response =
index_content
+ |> String.replace(~r/.+?<\/title>/, title)
|> String.replace("", preloads)
conn