commit b720f841472e515f0dd2db2d794d81eae7dfddf5 parent 658d961f7b39b91f77c563a8ea106c1afc42369e Author: Felicitus <felicitus@felicitus.org> Date: Mon, 20 Jul 2015 01:24:53 +0200 Return the full path as defined by the base tag. Diffstat:
M | src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js b/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js @@ -597,7 +597,7 @@ PartKeepr.getApplication = function () { }; PartKeepr.getBasePath = function () { - return "app_dev.php"; + return document.getElementsByTagName('base')[0].href; }; PartKeepr.getImagePath = function () {