• Xiaowu Zhang's avatar
    WebSite: fix find common part logic · 81de6fee
    Xiaowu Zhang authored
    if we have website_path = ('', 'erp5', 'web_site_module', 'renderjs_runner')
    path = ('++resource++zmi', 'bootstrap-4.6.0', 'bootstrap.bundle.min.js')
    
    common_index will still be 0
    
    so those codes are running
    if path_len > common_index + 1:
      path = website_path + path[common_index + 1:]
    
    finally path will be ('', 'erp5', 'web_site_module', 'renderjs_runner', 'bootstrap-4.6.0', 'bootstrap.bundle.min.js')
    without ++resource++zmi
    81de6fee