title: react-router go back a page how do you configure history?
body: <p>Can anyone please tell me how I can go back to the previous page rather than a specific route?</p>
  
  <p>When using this code:</p>
  
  <pre><code>var BackButton = React.createClass({
  
   mixins: [Router.Navigation],
    render: function() {
      return (
          &lt;button
              className="button icon-left"
              onClick={this.navigateBack}&gt;
              Back
          &lt;/button&gt;
      );
    },
  
    navigateBack: function(){
      this.goBack();
    }
  });
  </code></pre>
  
  <p>Get this error, <strong>goBack() was ignored because there is no router history</strong></p>
  
  <p>Here are my routes:</p>
  
  <pre><code>// Routing Components
  Route = Router.Route;
  RouteHandler = Router.RouteHandler;
  DefaultRoute = Router.DefaultRoute;
  
  var routes = (
   &lt;Route name="app" path="/" handler={OurSchoolsApp}&gt;
       &lt;DefaultRoute name="home" handler={HomePage} /&gt;
       &lt;Route name="add-school" handler={AddSchoolPage}  /&gt;
       &lt;Route name="calendar" handler={CalendarPage}  /&gt;
       &lt;Route name="calendar-detail" path="calendar-detail/:id" handler={CalendarDetailPage} /&gt;
       &lt;Route name="info-detail" path="info-detail/:id" handler={InfoDetailPage} /&gt;
       &lt;Route name="info" handler={InfoPage} /&gt;
       &lt;Route name="news" handler={NewsListPage} /&gt;
       &lt;Route name="news-detail" path="news-detail/:id" handler={NewsDetailPage} /&gt;
       &lt;Route name="contacts" handler={ContactPage} /&gt;
       &lt;Route name="contact-detail" handler={ContactDetailPage} /&gt;
       &lt;Route name="settings" handler={SettingsPage} /&gt;
   &lt;/Route&gt;
   );
  
   Router.run(routes, function(Handler){
     var mountNode = document.getElementById('app');
     React.render(&lt;Handler /&gt; , mountNode);
   });
  </code></pre>