Hi Community Folks,
I have a scenario in which I have to pass some custom data based on user's properties to welcome email template in nodebb. How can I achieve this ?
Feedback appreciated
Thanks
Hello,
I tried going to a custom route using Ajaxify, but it does not work.
but the route works properly on full page reload
the error it shows is 404 not found
--Edit--
One page seems to be ajaxifying after i added the api route to it, but it still getting routed to wrong page
link is to
link/ID/add
but the page that is being loaded is
link/ID
and url in the location bar is still the old '/add' one.
when full page refresh is done the proper page is loaded.
and also Another route is not at all getting ajaxified.
@riteshsanap Can you share some code with us?
This is for a plugin, right?
I have pasted the related code on this gist
@riteshsanap do you have the contents of routes.js in an init hook handler? Are there any errors?
i also tried by manually typing in the browsers console
ajaxify.go(RELATIVE_URL);
but it returns false
I solved it, so for those get stuck here , we have to add Custom routes for ajaxifying and also mention which template to use.
to solve that add custom mapping to the file
/src/views/config.json
like this
"^route/.*": "Template to use without .tpl at the end",
"^route/.*/add": "template"