diff --git a/copyparty/__main__.py b/copyparty/__main__.py
index 1ae4eec8..8d0dc245 100644
--- a/copyparty/__main__.py
+++ b/copyparty/__main__.py
@@ -1558,7 +1558,6 @@ def add_optouts(ap):
ap2.add_argument("--no-mv", action="store_true", help="disable move/rename operations")
ap2.add_argument("--no-cp", action="store_true", help="disable copy operations")
ap2.add_argument("--no-fs-abrt", action="store_true", help="disable ability to abort ongoing copy/move")
- ap2.add_argument("-nth", action="store_true", help="no title hostname; don't show \033[33m--name\033[0m in
")
ap2.add_argument("-nih", action="store_true", help="no info hostname -- don't show in UI")
ap2.add_argument("-nid", action="store_true", help="no info disk-usage -- don't show in UI. This is the same as --du-who no")
ap2.add_argument("-nb", action="store_true", help="no powered-by-copyparty branding in UI")
diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py
index f0ffb1a1..1d9b7a4e 100644
--- a/copyparty/httpcli.py
+++ b/copyparty/httpcli.py
@@ -6941,7 +6941,7 @@ class HttpCli(object):
"have_b_u": (self.can_write and self.uparam.get("b") == "u"),
"sb_lg": vn.js_ls["sb_lg"],
"url_suf": url_suf,
- "title": html_escape("%s %s" % (self.args.bname, self.vpath), crlf=True),
+ "title": html_escape((self.vpath or "copyparty") if self.args.nih else "%s %s" % (self.args.bname, self.vpath), crlf=True),
"srv_info": srv_infot,
"dtheme": self.args.theme,
}
diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js
index a616694d..51ca817b 100644
--- a/copyparty/web/browser.js
+++ b/copyparty/web/browser.js
@@ -9395,7 +9395,7 @@ function wintitle(txt, noname) {
txt += uricom_dec(get_evpath()).slice(1, -1).split('/').pop();
- document.title = txt;
+ document.title = txt || "copyparty";
}