Skip to content

Commit 4bf45df

Browse files
committed
Attempt
1 parent 6221dbe commit 4bf45df

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

lib/galaxy/webapps/galaxy/buildapp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def app_pair(global_conf, load_app_kwds=None, wsgi_preflight=True, **kwargs):
193193
# The following are routes that are handled completely on the clientside.
194194
# The following routes don't bootstrap any information, simply provide the
195195
# base analysis interface at which point the application takes over.
196-
webapp.add_client_route("/")
197196
webapp.add_client_route("/about")
198197
webapp.add_client_route("/admin")
199198
webapp.add_client_route("/admin/data_tables")

lib/galaxy/webapps/galaxy/controllers/root.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ def client(self, trans: GalaxyWebTransaction, app_name="analysis", **kwd):
5050
"""
5151
return trans.fill_template("/js-app.mako", js_app_name=app_name)
5252

53+
@web.expose
54+
def index(self, trans: GalaxyWebTransaction, app_name="analysis", history_id=None, **kwd):
55+
"""
56+
Root and entry point for client-side web app.
57+
"""
58+
59+
# if a history_id was sent, attempt to switch to that history
60+
history = trans.history
61+
if history_id:
62+
unencoded_id = trans.security.decode_id(history_id)
63+
history = self.history_manager.get_owned(unencoded_id, trans.user)
64+
trans.set_history(history)
65+
return trans.fill_template("/js-app.mako", js_app_name=app_name)
66+
5367
@web.expose
5468
def login(self, trans: GalaxyWebTransaction, redirect=None, is_logout_redirect=False, **kwd):
5569
"""

0 commit comments

Comments
 (0)