Skip to content

Commit

Permalink
Merge pull request #1389 from StochSS/fix_broken_example_links
Browse files Browse the repository at this point in the history
fixing broken example library links
  • Loading branch information
BryanRumsey authored Sep 27, 2022
2 parents 71035d3 + 2f56302 commit 8bb7616
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stochss/handlers/file_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,12 @@ async def get(self):
Attributes
----------
'''
home = "/hub/spawn" if str(self.request.path).startswith("/user") else "stochss/home"
if str(self.request.path).startswith("/user"):
home = self.request.path
home = home.replace('api/example-library','home')
else:
home = "stochss/home"

try:
system = StochSSBase(path=".example-library.json")
examples = system.load_example_library(home)
Expand Down

0 comments on commit 8bb7616

Please sign in to comment.