Ticket #7768: allow_absolute_urls_for_add_script_add_stylesheet.patch
| File allow_absolute_urls_for_add_script_add_stylesheet.patch, 1.1 KB (added by mark.m.mcmahon@…, 21 months ago) |
|---|
-
chrome.py
84 84 will be based off the application root path. If it is relative, the link 85 85 will be based off the `/chrome/` path. 86 86 """ 87 if filename.startswith('common/') and 'htdocs_location' in req.chrome: 87 if filename.startswith('http'): 88 # don't process aboslute urls 89 pass 90 elif filename.startswith('common/') and 'htdocs_location' in req.chrome: 88 91 href = Href(req.chrome['htdocs_location']) 89 92 filename = filename[7:] 90 93 else: … … 104 107 if filename in scriptset: 105 108 return False # Already added that script 106 109 107 if filename.startswith('common/') and 'htdocs_location' in req.chrome: 110 if filename.startswith('http'): 111 # don't process aboslute urls 112 pass 113 elif filename.startswith('common/') and 'htdocs_location' in req.chrome: 108 114 href = Href(req.chrome['htdocs_location']) 109 115 path = filename[7:] 110 116 else:
