Commit aedb570e by ichuang

make edit link use static_asset_path in xmodule_modifiers.py

parent 77abfbf4
......@@ -156,7 +156,7 @@ def add_histogram(get_html, module, user):
# if original, unmangled filename exists then use it (github
# doesn't like symlinks)
filepath = filename
data_dir = osfs.root_path.rsplit('/')[-1]
data_dir = module.lms.static_asset_path or osfs.root_path.rsplit('/')[-1]
giturl = module.lms.giturl or 'https://github.com/MITx'
edit_link = "%s/%s/tree/master/%s" % (giturl, data_dir, filepath)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment