Forum Discussion

fibaek's avatar
fibaek
Helper I
6 years ago
Solved

Simulate Browser Back Button (history-1)

Hello, Does any of you execellent people have an idea of how to create a back button? My idea is to do somthing like executing a very simpel js function such as history.back(), however I have not fo...
  • dm-p's avatar
    dm-p
    6 years ago

    Hi fibaek,

    The back button is currently the "Power BI way" that users have to navigate back after cross-report drillthrough.

    You can't simulate the window.history.back() operation via JS as R/Python/custom visuals are sandboxed from the main window, so calling that in any of these places will only invoke it on an embedded iframe with no history of its own (basically doing nothing for the end-user). I've tried this previously and just tried it again just to be sure it still doesn't work... it doesn't.

    For consistency purposes, I would suggest that this is more of a feature request for cross-report drillthrough in that if a report is invoked via drillthrough then it should detect this and display a button, similar to drillthrough within a report. I just looked and there's already an idea created for it that you can add a vote to (I've added mine).

    Regards,

    Daniel