Clearing contextual links'cache
This cache is located in sessionStorage on modern browsers.



I'm just clearing the entire sessionStorage with window.sessionStorage.clear(); on logout to solve this problem. I could be more precise on this deletion, but it does not matter in this app.