Skip to content

Commit

Permalink
Item13069: fixed renamed angular_mode url param
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Nov 24, 2014
1 parent f330969 commit f5ecb24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pub/System/AngularSkin/controller.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app.controller("ViewCtrl", [
path = $location.path(),
url = ($location.absUrl()||'').replace(/#.*/, ""),
search = $location.search()||{},
angularMode = search.angular,
angularMode = search.angular_mode,
web, topic;

match = pathRegex.exec(path);
Expand Down Expand Up @@ -70,7 +70,7 @@ app.controller("ViewCtrl", [

if (typeof(angularMode) !== 'undefined' && angularMode === "0") {
// reload page
url = foswiki.getScriptUrl("view", web, topic, { angular: 0});
url = foswiki.getScriptUrl("view", web, topic, { angular_mode: 0});
$log.debug("redirecting to ",url);
window.location.href = url;
return false;
Expand Down
4 changes: 2 additions & 2 deletions pub/System/AngularSkin/pkg.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ app.controller("ViewCtrl", [
path = $location.path(),
url = ($location.absUrl()||'').replace(/#.*/, ""),
search = $location.search()||{},
angularMode = search.angular,
angularMode = search.angular_mode,
web, topic;

match = pathRegex.exec(path);
Expand Down Expand Up @@ -271,7 +271,7 @@ app.controller("ViewCtrl", [

if (typeof(angularMode) !== 'undefined' && angularMode === "0") {
// reload page
url = foswiki.getScriptUrl("view", web, topic, { angular: 0});
url = foswiki.getScriptUrl("view", web, topic, { angular_mode: 0});
$log.debug("redirecting to ",url);
window.location.href = url;
return false;
Expand Down

0 comments on commit f5ecb24

Please sign in to comment.