Since the order history will be filtered on a particular user you must be logged in with a user that has orders associated with them in order to view the order history page properly. For the details page you should be able to just link directly to it with the identifier in the link.