From 46742459bfa35316db2b0d6086e3848ff677b6ae Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 30 Oct 2015 09:14:49 -0400 Subject: [PATCH] Add empty host for `clear-cache` proxy request So that it actually goes to scratchr2, not scratch-api --- src/views/splash/splash.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/splash/splash.jsx b/src/views/splash/splash.jsx index c438d0a83..345a6e0e6 100644 --- a/src/views/splash/splash.jsx +++ b/src/views/splash/splash.jsx @@ -118,6 +118,7 @@ var Splash = injectIntl(React.createClass({ }, refreshHomepageCache: function () { this.api({ + host: '', uri: '/scratch_admin/homepage/clear-cache/', method: 'post', useCsrf: true @@ -375,7 +376,7 @@ var Splash = injectIntl(React.createClass({ Refresh row data: