Watchlist E-Mail wrong hostname (localhost instead my.domain.com)

Hi Thomas @tmortagne,

i am facing the same problem as matmassa described in Wrong URL (localhost) in watchlist email

The watchlist E-Mails contains “localhost” instead of “my.domain.com”:

Example:

Unfortunately i don’t understand the solution mentioned by @matmassa in his topic.

I’ve also checked https://jira.xwiki.org/browse/XWIKI-13435 but couldn’t find a solution.

It’s right, i’ve first installed and configured XWiki with “localhost” as the external domain wasn’t available at this moment.

How could i solve this problem with matmassas suggestion?

  • "I solved resending a call using the right domain url and RESTARTING the wiki (if I did’n restart it did’t change)."

Does anyone has a solution or hint?

Best regards,
Dolo

Found a solution here: https://devs.xwiki.narkive.com/ZjohUMDG/xwiki-devs-localhost-in-notification-email

  • Open "/etc/xwiki/xwiki.cfg" and add/activate the “xwiki.home” parameter:

    Example: xwiki.home=https://my.domain.com/

  • After that restart tomacat:

    sudo systemctl restart tomcat9

Now the watchlist E-Mails send by XWiki contains the correct url.

Can be closed as solved.

Best regards,
Dolo

Thanks @Dolo for posting the solutions you find. Future users will thank you :slight_smile:

Thank you :slight_smile: