I'm trying to implement a callback to an API endpoint I've built in a custom controller and I'm at a wall with how to replicate core phpBB behaviour and wondering if anyone has figured out how to do this yet?
So I've got a
The anchor has the following attributes:
I noticed some functions around core (like locking a topic) uses these two attributes and I assumed that it would make the like act as an AJAX callback that once clicked, it would refresh the page.
The AJAX part does work but it doesn't refresh the page. I'm wondering how I would go about firstly, getting the confirm (yes/no) popup working as pictured below. Then secondly how to refresh the page when yes is clicked.
Any ideas on this please?
So I've got a
href
that when clicked goes to a desired endpoint I've defined.The anchor has the following attributes:
Code:
data-ajax="true" data-refresh="true"
The AJAX part does work but it doesn't refresh the page. I'm wondering how I would go about firstly, getting the confirm (yes/no) popup working as pictured below. Then secondly how to refresh the page when yes is clicked.
Any ideas on this please?
Statistics: Posted by danieltj — Wed Jun 11, 2025 10:00 pm