The WEB_ROOT setting needs to be respected rather than assuming / as
the root of the application. Simiarly, we can not assume that STATIC_URL
is a sub url of the WEB_ROOT. They can be configured as two indepedent url.
Angular templates are loaded dynamically with Ajax, which requires an
absolute base path. We define those base paths as angular constants for
template use and future routing.
Reviewed: https:/ /review. openstack. org/181095 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=35e47358f0e 3567b91da111612 0c3c9fd97d8e6c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 35e47358f0e3567 b91da1116120c3c 9fd97d8e6c
Author: Thai Tran <email address hidden>
Date: Tue Jul 21 10:45:40 2015 -0700
Fix bug where WEBROOT is not respected
The WEB_ROOT setting needs to be respected rather than assuming / as
the root of the application. Simiarly, we can not assume that STATIC_URL
is a sub url of the WEB_ROOT. They can be configured as two indepedent url.
Angular templates are loaded dynamically with Ajax, which requires an
absolute base path. We define those base paths as angular constants for
template use and future routing.
TO TEST, follow directions at: docs.openstack. org/developer/ horizon/ topics/ settings. html#webroot
http://
Co-Authored-By: Matt Borland <email address hidden>
Co-Authored-By: Shaoquan Chen <email address hidden>
Co-Authored-By: Thai Tran <email address hidden>
Change-Id: Ifcd459633682ed c94b270019ce77e 17d64bea22d
Closes-Bug: #1451681