From 694140e3197968a1d03ac58a903b20e181302cd4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 16 Jun 2018 22:17:09 +0300 Subject: Redirect anonymous from protected resource --- vnext/src/components/Feeds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext/src') diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index 3c183f7f..9748c113 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -42,7 +42,7 @@ class Feed extends React.Component { url = `${url}?${qs.stringify(params)}`; } if (!params.hash && this.props.authRequired) { - return + this.props.history.push('/') } fetch(url) .then(response => { -- cgit v1.2.3