diff --git a/spice_auto.html b/spice_auto.html
index 5714804..9aae118 100644
--- a/spice_auto.html
+++ b/spice_auto.html
@@ -128,6 +128,10 @@
uri = scheme + host + ":" + port;
+ if (path) {
+ uri += path[0] == '/' ? path : ('/' + path);
+ }
+
try
{
sc = new SpiceMainConn({uri: uri, screen_id: "spice-screen", dump_id: "debug-div",