How to redirect to Custom Page on Log Out/Session Time Out

I have a requirement where, I need to redirect the user to custom example.html page instead of default mendix LogOut.html page. I found many posts in the mendix forum but none are working. Below are the few options that I have tried so far. Updated the code on Index.html page.   Also tried to modify the code of login.js file as shown below      In all the above cases it is still redirecting to the same login.html page. Also I would like to know how these files are called in mendix . I am able to connect the flow how these files are referred by mendix at runtime. Any suggestion how to achieve this.
1 answers

In the open authentication module I’ve implemented this via a custom logout button and a url redirector widget like proposed here:

Building the custom logout request handler also mentioned is probably the best solution.