From 7172870fe2c89482b71d092ab386004ce9fde870 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Thu, 22 Dec 2016 09:33:30 +1300 Subject: [PATCH] Fixing search redirect --- src/js/components/SearchForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/SearchForm.js b/src/js/components/SearchForm.js index 0099b816..9dc21f6e 100755 --- a/src/js/components/SearchForm.js +++ b/src/js/components/SearchForm.js @@ -1,7 +1,7 @@ import React, { PropTypes } from 'react' import { connect } from 'react-redux' -import { Link, browserHistory } from 'react-router' +import { Link, hashHistory } from 'react-router' import { createStore, bindActionCreators } from 'redux' import FontAwesome from 'react-fontawesome' @@ -20,7 +20,7 @@ class SearchForm extends React.Component{ handleSubmit(e){ e.preventDefault(); - browserHistory.push(global.baseURL+'search/'+this.state.query); + hashHistory.push(global.baseURL+'search/'+this.state.query); return false }