title: react.js page refresh issue
body: <p>Page not working after refresh, but working fine when clicked on the links in react.js. This Problem occurs after deployment. I deployed my app using <strong>npm run build</strong>.</p>
  
  <p>Here is my index.js file:</p>
  
  <pre><code>    import React from 'react';
      import ReactDOM from 'react-dom';
      import { Router, Route, browserHistory, IndexRoute } from 'react-router';
      import './index.css';
      import App from './App';
      import registerServiceWorker from './registerServiceWorker';
      import { CONFIG } from './config';
      /**Import Components**/
      import Dashboard from './components/dashboard';
      import NetRights from './components/net_rights';
      import CommonRights from './components/common_rights';
      import Sales from './components/sales';
      import Finance from './components/finance';
  
  
      const Root = () =&gt; {
          return (
              &lt;div&gt;
                  &lt;Router history={browserHistory}&gt;
                      &lt;Route path={`${process.env.PUBLIC_URL}/`} component={App}&gt;
                          &lt;IndexRoute component={Dashboard}/&gt;
                          &lt;Route path={`${process.env.PUBLIC_URL}/folder_name/dashboard`} component={Dashboard}/&gt;
                          &lt;Route path={`${process.env.PUBLIC_URL}/folder_name/net_rights`} component={NetRights}/&gt;
                          &lt;Route path={`${process.env.PUBLIC_URL}/folder_name/common_rights`} component={CommonRights}/&gt;
                          &lt;Route path={`${process.env.PUBLIC_URL}/folder_name/sales`} component={Sales}/&gt;
                          &lt;Route path={`${process.env.PUBLIC_URL}/folder_name/finance`} component={Finance}/&gt;
                      &lt;/Route&gt;
                  &lt;/Router&gt;
              &lt;/div&gt;
          )
      }
  
      ReactDOM.render(&lt;Root /&gt;, document.getElementById('root'));
  
      registerServiceWorker();
  </code></pre>
  
  <p>Here is my package.json:</p>
  
  <pre><code>{
    "name": "rtapp09",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "react": "^16.2.0",
      "react-dom": "^16.2.0",
      "react-scripts": "1.0.17"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test --env=jsdom",
      "eject": "react-scripts eject"
    },
    "homepage": "/folder_name/"
  }
  </code></pre>