I tried to overwrite the drawer.vm to replace the “logout” link with the “OIDC RP logout URL”. If I replace the drawer.vm with the content of https://raw.githubusercontent.com/xwiki/xwiki-platform/stable-12.4.x/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/drawer.vm it doesn’t work. In case I click on the “hamburger button” to open the drawer, nothing happens. No error is thrown.
Is this something which should work? Thanks in advance.
Does someone has an idea to change the redirect url of the “logout button” in xwiki and how to achieve this?
Hi!
I get a 404 not found on the link you posted. I don’t really understand if you want to replace the displayed text or the link.
The drawer.vm
file: xwiki-platform/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/drawer.vm at master · xwiki/xwiki-platform · GitHub.
For changing the displayed text of the link, you should replace the text between <a>
and </a>
.
For changing the link/reference of the link, all you should do is to replace the href
attribute.
I customized the flamingo skin and copied the full file “drawer.vm” (without changing anything). Afterwards the drawer no longer appears. After removing the skin customization, the drawer appeared again. So, I’m not able to change anything in the drawer.vm curently.
I guess, changing the “xredirect=’’” would be what I need.