How can I enable a back arrow in my lightning salesforce app?

2 Answers 2


Since lightning apps are SPA, there is as far as I know no out-of-the-box browser-button-forward and backward support. Same goes for linkable URLs.

I was told on an event, that this mechanism is provided by the salesforce1 mobile app - and not by the framework.

As long as this stays true, to get it into your own app you probably need to code it in javascript maintaining some kind of custom history.

  • If it was helpful consider upvote+accept to close it
    – Uwe Heim
    Commented Apr 30, 2015 at 7:54

The previous answer is mostly correct. The Web App and the Mobile app use different code paths for the back button because of Browser bugs. Important because you could conceivably show a back button for the desktop using some behind the scenes magic, but doing so for the hybrid client is exceptionally difficult.

Best Case: If you want to show a back button, you should imitate the app as closely as possible. Doing a sforce.one.navigateToUrl() to a different page than you are on now should cause a back button to show. (Possibly even your page address with a different hash value--/apex/mypage#foo2)

There is no supported way of doing it though so as the previous answer suggested, you'll probably want to provide your own.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .