# Bug OP-16743 - Incorrect link generated when sending email notifications

Project: OpenProject
Status: needs clarification
URL: https://community.openproject.org/work_packages/OP-16743

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | DevSecOps / Docker, Modules and project features / Email notifications |
| Target versions |  |
| Observed in versions | 15.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*   Click on &quot;Forgot password&quot; or send a invitation to a new user
    

### What is the buggy behavior?

The email notification contains a link similar to the one below

[http://myserver.domain.com/account/lost\_password?token=...](http://myserver.domain.com/account/lost_password?token=...)

The link is not working because the port number is missing, correct link would look like:

[http://myserver.domain.com**:8085**/account/lost\_password?token=...](http://myserver.domain.com/account/lost_password?token=...)

### What is the expected behavior?

The generated link should include the port number if OpenProject is installed using a specific port.

###   

### Environment information

<br>

**OpenProject installation type**

Docker-compose installation

Environment variables are:

OPENPROJECT\_HOST\_NAME: myserver.domain.com

PORT: 8085

**OpenProject version**

OpenProject 15.3

**Browser**

*   [x] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [x] Linux (Ubuntu 22.02)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_German_
