You can use JavaScript code to achieve that.
You can add a Javascript snippet to your page and add your logic inside it.
Edit:
history.pushState(null, null, location.href);
window.onpopstate = function(event) {
history.pushState(null, null, location.href);
};
Edit 2:
Hi,
To control the functionality of the back button in a Mendix application, you can use JavaScript code in a snippet.
// Disable the back button
window.history.pushState(null, document.title, location.href);
window.addEventListener('popstate', function(event) {
window.history.pushState(null, document.title, location.href);
});
// Customize the back button behavior
window.addEventListener('popstate', function(event) {
// Add your desired functionality here
// For example, you can redirect to a specific page:
window.location.href = 'path/to/your/page';
});
Hope it helps!!!
This is logic for opening t&c page