Skip to content

feat: Added config url for TOS and Privacy Policy

Farhaan Bukhsh requested to merge farhaan/bb-7788-configure-url into master

The feature to add a configurable URL for TOS and Privacy Policy. The user needs to set the footerConfig in config.js and if the value is present the footer appears with the link. If not the footer will disappear.

Supporting information

Discussions

Link to any public discussions about this PR or the design/architecture. Otherwise omit this.

Dependencies

None

Visual changes

image

Merge deadline

"None" if there's no rush, "ASAP" if it's critical, or provide a specific date if there is one.

Testing instructions

Step by step procedure

  1. Change into the feature branch
  2. make build or make to get the development environment up and running
  3. Get into the frontend repo cd frontend
  4. Run npm start, this will get the frontend running on http://localhost:3000, and you will notice no footer.
  5. Check there is no footer, now in frontend/.env.local add
REACT_APP_TOS_LINK="https://listaflow.wpengine.com/terms-of-service/"
REACT_APP_PRIVACY_LINK="https://listaflow.wpengine.com/privacy-policy/"

Restart the server

  1. You will see the footer appear with the links.

Author notes and concerns

For now, we are supporting relative links.

Edited by Farhaan Bukhsh

Merge request reports