Thread:Effan R/@comment-27640688-20200801143439/@comment-34975959-20200802152643

I have not got around to testing it yet, but I think you should try and change

to

in the last line, and it should work.

When the module is invoked, all the templates etc. have already been processed, and only links ... etc. work after return from the module. For returning templates, you need to pre-process them within the module.