Jellyfin Forum
My Custom Page Title Changes After Page Load - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: My Custom Page Title Changes After Page Load (/t-my-custom-page-title-changes-after-page-load)



My Custom Page Title Changes After Page Load - jffan69 - 2025-05-15

I am using Jellyfin in this container:

https://hub.docker.com/r/linuxserver/jellyfin

https://github.com/linuxserver/docker-jellyfin/blob/master/Dockerfile


It allows a script to run on boot that sets some stuff for me for my custom UI setup that looks like Netflix.

Code:
#!/usr/bin/env bash

sed -i 's/document.title="Jellyfin"/document.title="Setflix"/' "/usr/share/jellyfin/web/main.jellyfin.bundle.js" && sed -i 's/document.title=e||"Jellyfin"}/document.title=e||"Setflix"}/' "/usr/share/jellyfin/web/main.jellyfin.bundle.js" && sed -i 's/<title>Jellyfin/<title>Setflix/' "/usr/share/jellyfin/web/index.html"

cp /custom-cont-init.d/icons/* /usr/share/jellyfin/web/

sed -i 's%http://jellyfin.org%https://setflix.com%' "/usr/share/jellyfin/web/index.html"
sed -i 's%content="Jellyfin"%content="Setflix"%g' "/usr/share/jellyfin/web/index.html"

When I go to my URL the page loads fine but then after a few seconds it seems like some javascript or something kicks in then the page title changes from Setflix back to Jellyfin. Any ideas what file or what I am missing changing for the page title to always be properly set?