Skip to content

Commit

Permalink
Fix: JS url variable may fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
quickapps committed Apr 11, 2012
1 parent 96611fc commit d8d05ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuickApps/Controller/Component/QuickAppsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function prepareContent() {
// Basic js files/inline
$this->Controller->Layout['javascripts']['inline'][] = '
jQuery.extend(QuickApps.settings, {
"url": "' . Router::url($this->Controller->here, true) . '",
"url": "' . (defined('FULL_BASE_URL') ? FULL_BASE_URL . $this->Controller->here : $this->Controller->here) . '",
"base_url": "' . QuickApps::strip_language_prefix(Router::url('/', true)) . '",
"domain": "' . env('HTTP_HOST') . '",
"locale": {"code": "' . Configure::read('Variable.language.code') . '"}
Expand Down

0 comments on commit d8d05ec

Please sign in to comment.