diff --git a/app/assets/javascripts/noapi.js b/app/assets/javascripts/noapi.js index 7a95c90..ff64631 100644 --- a/app/assets/javascripts/noapi.js +++ b/app/assets/javascripts/noapi.js @@ -1,6 +1,6 @@ -// if on api subdomain except for charts, redirect +// if on api subdomain except for charts and plugins, redirect var wloc = window.location.toString(); -if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1) { +if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1 && wloc.indexOf('plugins') === -1) { window.location = wloc.replace('api', 'www'); } diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb index 2c58db8..fc8d194 100644 --- a/app/views/pages/home.html.erb +++ b/app/views/pages/home.html.erb @@ -79,8 +79,8 @@