title: Detect if the user got to the current route by using history.goBack()
body: <p>I have an application that has a list of employees as a part of it. When the user clicks on an employee, the app navigates to the details page of the employee. In the details page there is a button that executes <code>history.goBack()</code>, which would take the user to the employee list, but that is not the only way to navigate to the employee list in the app.</p>
  <p>I need to execute certain logic only when the user has gotten to the employee list by using <code>history.goBack</code> (the logic should NOT be executed, when the user gets to the employee list, f.e. using <code>history.push</code>).</p>
  <p>How can I detect whether the user got there by using history.goBack() in the employee list component?</p>