Hi @Sebastien_Duke - Welcome to the forum ![]()
Straight off the bat - I’m not a coder ![]()
What you’re running into depends on whether your app is built in Classic or the new Next Gen version. Given the fact that you’re missing the JavaScript section I think you’re on Next Gen.
-
Next Gen (the new React version): At the moment, only custom CSS is supported – no JavaScript yet. That means it isn’t possible right now to override the logout redirect to always go back to your General Login page.
-
Classic (the existing jQuery version): This is possible. With a little bit of custom JavaScript, you can catch the logout action and send users back to /login instead of the role-specific login page.
If you were on Classic, (according to my good friend, ChatGPT ), you could do something like this. I’m sure you know better than me.
$(document).on('knack-scene-render.any', function(event, scene) {
$('a.kn-log-out').off('click').on('click', function(e) {
e.preventDefault();
Knack.logout();
window.location.href = '/login'; // Always go back to General Login
});
});
If you’re on Next Gen, this isn’t possible yet – Knack are currently working on introducing JavaScript.
Not a lot of help I’m afraid ![]()
You may find this thread of interest.