mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Merge pull request #10332 from mvdbeek/strip_trailing_slash_from_tool_id
[20.09] Strip trailing ``/`` from tool_id for data source redirects
This commit is contained in:
@@ -47,6 +47,9 @@ class ToolRunner(BaseUIController):
|
||||
# tool id not available, redirect to main page
|
||||
if tool_id is None:
|
||||
return trans.response.send_redirect(url_for(controller='root', action='welcome'))
|
||||
if tool_id.endswith('/'):
|
||||
# Probably caused by a redirect
|
||||
tool_id = tool_id[:-1]
|
||||
tool = self.__get_tool(tool_id)
|
||||
# tool id is not matching, display an error
|
||||
if not tool:
|
||||
|
||||
Reference in New Issue
Block a user