Modifying links in emails with multiple possible sources
Moderators: Developer, Contributor
Modifying links in emails with multiple possible sources
I'm running Mantis and Subversion on the same server in my company. Both are accessed from inside and outside the company network. I also have Subversion integrated with Mantis so that a check-ins can update issues. The problems lie with the e-mails that are sent when an issue is updated. The main problem, which I definitely want to fix is that when Subversion updates an issue, the link in the e-mail is http://localhost/opt/mantisbt/scripts/... I can't fix this by hard-coding $g_path to my internal address because then external access in general won't work. So I'm trying to figure out how to do this without messing with $g_path. I tried to step through the code to figure out where to catch this, but it gets pretty convoluted. Ideally, everyone would get e-mails with links appropriate for their location, but I think that would be too difficult. The next best thing would be to have both the internal and external links.