Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activist portal footer does not respect privacy policy environment variable #2432

Closed
richardolsson opened this issue Dec 18, 2024 · 1 comment
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix.

Comments

@richardolsson
Copy link
Member

Description

Zetkin can be deployed "on-premise", meaning that the organization manages the instance themselves. In those cases, they will have their own privacy policy, and that needs to be configured in an environment variable. This was introduced for the survey pages, but is now also relevant for the new "Activist portal" or "My Zetkin" pages introduced by #2425.

Steps to reproduce

  1. Change .env.local to contain environment variable ZETKIN_PRIVACY_POLICY_LINK=http://example.com
  2. Restart the dev server
  3. Go to http://localhost:3000/my and sign in as any dummy user
  4. Scroll to bottom of page
  5. Click the "Privacy policy" link in the footer

Expected Behaviour

The browser should navigate to http://example.com (per the environment variable configuration).

Actual Behaviour

The browser navigates to the default privacy policy.

Screenshots (if you have any)

See screenshot for the link in question (selected, towards bottom of screen).

image

@richardolsson richardolsson added 🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix. labels Dec 18, 2024
@richardolsson
Copy link
Member Author

Fixed by #2447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix.
Projects
None yet
Development

No branches or pull requests

1 participant