fix(frontend): auth redirects use strict false-check for auth_links (BIT-22298) #10

Merged
spark merged 1 commits from fix/BIT-22298-auth-redirect into main 2026-05-14 14:52:54 +01:00
Owner

Summary

  • /entrar and /registar redirected to / because !config.auth_links is truthy when auth_links is undefined (config fallback)
  • Change both pages to config.auth_links === false: only an explicit opt-out sends home; missing or true both forward to wp-login.php
  • Add Cache-Control: no-store to prevent edge-caching of auth redirects
  • Extend smoke-andebol.sh to assert /entrar and /registar resolve to a wp-login URL

Fixes BIT-22298

## Summary - `/entrar` and `/registar` redirected to `/` because `!config.auth_links` is truthy when `auth_links` is `undefined` (config fallback) - Change both pages to `config.auth_links === false`: only an explicit opt-out sends home; missing or `true` both forward to `wp-login.php` - Add `Cache-Control: no-store` to prevent edge-caching of auth redirects - Extend `smoke-andebol.sh` to assert `/entrar` and `/registar` resolve to a `wp-login` URL Fixes [BIT-22298](/BIT/issues/BIT-22298)
spark added 1 commit 2026-05-14 14:49:19 +01:00
fix(frontend): auth redirects use strict false-check for auth_links (BIT-22298)
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 12s
Tests / frontend lib tests (push) Successful in 12s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 13s
Tests / frontend lib tests (pull_request) Successful in 14s
11cea53dab
/entrar and /registar redirected to / because !config.auth_links is
truthy when auth_links is undefined (config fallback).  Change both
pages to config.auth_links === false so only an explicit opt-out sends
the user home; missing or true both forward to wp-login.php.

Also add Cache-Control: no-store to the redirect response so edge
proxies never cache auth flows, and extend smoke-andebol.sh to assert
/entrar and /registar resolve to a wp-login URL.

Paperclip-Issue: BIT-22298
Paperclip-Agent: d706f4e6-5d05-4cec-b6e8-f8fb1f203aae
spark merged commit b4af1397b7 into main 2026-05-14 14:52:54 +01:00
Sign in to join this conversation.