hotosm/tasking-manager

TM_ORG_URL should include http:// or https://

frafra opened this issue · 0 comments

I updated the tasking manager on a server, and I found it was generating a broken link in the header.

This is because the example.env specifies that TM_ORG_URL and TM_ORG_PRIVACY_POLICY_URL should not include the protocol:

# Don't use http or https on the following two variables
TM_ORG_URL=example.com
TM_ORG_PRIVACY_POLICY_URL=https://www.hotosm.org/privacy

This is not correct, since the frontend does not add the protocol:

<a className="link red f6 mr2" href={`${ORG_URL}`} target="_blank" rel="noreferrer">

This is because of a change that has not been reflected in the example file:

74d130d#diff-7918370b89a458b03dac0ed4fdce697153cd37e684b6fa52a2532f7c7e50195e