There's this tutorial in Kodi. I'm too much of a noob to follow it though -Clive
The tutorial shows how to write an XML file which tells Kodi how to display the view described in the XML file. The problem is that the XML is not
code, per se. It's a markup language. That is, that XML file is not going to determine what Kodi displays when you press the back button. That's handled within the actual codebase that powers Kodi . In other words, you would need to either modify the Kodi codebase to do what you want or find a setting within Kodi that enables the behaviour you seek. Does that make sense?
Now, that being said, I use Kodi and navigating back through various folders, etc, brings me back to the previously selected folder. Of course, I might be misunderstanding you.