diff --git a/shiny/render/_render.py b/shiny/render/_render.py index 0486524a2..52578532b 100644 --- a/shiny/render/_render.py +++ b/shiny/render/_render.py @@ -688,7 +688,7 @@ def url() -> str: from urllib.parse import quote session = require_active_session(None) - return f"session/{quote(session.id)}/download/{quote(self.output_id)}?w=" + return f"session/{quote(session.id)}/download/{quote(session.ns(self.output_id))}?w=" # Unlike most value functions, this one's name is `url`. But we want to get the # name from the user-supplied function. @@ -705,7 +705,7 @@ def url() -> str: # have been started. session = get_current_session() if session is not None and not session.is_stub_session(): - session._downloads[self.output_id] = DownloadInfo( + session._downloads[session.ns(self.output_id)] = DownloadInfo( filename=self.filename, content_type=self.media_type, handler=fn,