diff --git a/webif/html/browse/script.js b/webif/html/browse/script.js
index b4ce507..9ef5da7 100755
--- a/webif/html/browse/script.js
+++ b/webif/html/browse/script.js
@@ -837,7 +837,7 @@ function doplay(it)
} else {
window.location = '/browse/play.jim?' +
'dir=' + encodeURIComponent(dir) +
- '&base=' + encodeURI(window.location.href) +
+ '&base=' + encodeURI(window.location.hostname) +
'&duration=' + duration +
'&file=' + encodeURIComponent(file);
}