MAIL - cannot open external link

Nextcloud version 18.0.1
MAIL - when selecting/click on email with http link to open external website/link I get the following error:

## Internal Server Error

The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.

Technical details

  • Remote Address: 196.220.168.174
  • Request ID: oEIF8b2NJ2i9V75eczaK

Log ERROR:
|Error|index|Exception: Argument 1 passed to OCA\Mail\Controller\ProxyController::redirect() must be of the type string, null given, called in /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 170

  1. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con … {}, “redirect”)
  2. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Mail\ … r”, “redirect”, OC\AppFramew … {}, { _route: "m … "})
  3. <>OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "m … "})
  4. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/Route/Router.php - line 299:call_user_func(OC\AppFramew … {}, { _route: "m … "})
  5. /home/smeserv/public_html/soluticonsult/nextcloud/lib/base.php - line 1008:OC\Route\Router->match("/apps/mail/redirect")
  6. /home/smeserv/public_html/soluticonsult/nextcloud/index.php - line 38:OC::handleRequest()

Caused by TypeError: Argument 1 passed to OCA\Mail\Controller\ProxyController::redirect() must be of the type string, null given, called in /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Http/Dispatcher.php on line 170

  1. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:OCA\Mail\Controller\ProxyController->redirect(null)
  2. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Con … {}, “redirect”)
  3. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Con … {}, “redirect”)
  4. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Mail\ … r”, “redirect”, OC\AppFramew … {}, { _route: "m … "})
  5. <>OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "m … "})
  6. /home/smeserv/public_html/soluticonsult/nextcloud/lib/private/Route/Router.php - line 299:call_user_func(OC\AppFramew … {}, { _route: "m … "})
  7. /home/smeserv/public_html/soluticonsult/nextcloud/lib/base.php - line 1008:OC\Route\Router->match("/apps/mail/redirect")
  8. /home/smeserv/public_html/soluticonsult/nextcloud/index.php - line 38:OC::handleRequest()|
    | — | — |

Any assistance would be appreciated.
Many Thanks
Herman

See https://github.com/nextcloud/mail/issues?q=is%3Aissue+"ProxyController%3A%3Aredirect"+is%3Aclosed. I think this is a fixable misconfiguration.