The API route doesn't render a template. It just outputs the JSON that is passed into render.
You can test this by prepending /api on any route, you'll see JSON output.
The purpose of this is for the AJAX loading of the next page.
@baris you should detect whenever anything is going to /admin/...
and automatically open it in a new tab.
@pitaj @pichalite gh#2849
@julian one problem. when I click on the notification, it's opening the same link in current tab and in a new tab.
@pichalite looking at the code, that shouldn't be happening. Hmmm...
@baris doesn't seem to be fixed. Still same issue.
Is the relevant code in public/src/ajaxify
?
@pichalite Try with https://github.com/NodeBB/NodeBB/commit/f89741636cdad244d38bf2c8dca52054f65c335c
Let me know if that works.
Can you try again on latest.
@baris works now, thanks.