Skip to content

Commit 6db0f10

Browse files
committed
fix tornado redirect
1 parent 8e77080 commit 6db0f10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/idom/server/tornado.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ def _setup_common_routes(options: Options) -> _RouteHandlerSpecs:
135135
)
136136
if options.redirect_root:
137137
handlers.append(
138-
(options.url_prefix, RedirectHandler, {"url": "./client/index.html"})
138+
(
139+
urljoin("/", options.url_prefix),
140+
RedirectHandler,
141+
{"url": "./client/index.html"},
142+
)
139143
)
140144
return handlers
141145

0 commit comments

Comments
 (0)