fix: Broken /terms and /privacy routes (#749)

* fix: replace invalid redirect("about:blank") with proper controller actions

The privacy and terms routes were using redirect("about:blank") which is
invalid because about:blank is a browser-specific pseudo URL, not a valid
HTTP redirect target. This fix replaces them with proper controller actions
that render placeholder pages.

Changes:
- Add privacy and terms actions to PagesController with skip_authentication
- Create privacy.html.erb and terms.html.erb view templates
- Add i18n translations for the new pages
- Update routes to use pages#privacy and pages#terms

https://claude.ai/code/session_01RL36dMda1o6LXGsnGnTJZu

* Make legal routes configurable

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Juan José Mata
2026-01-23 11:39:48 +01:00
committed by GitHub
parent 0316b848eb
commit 5ba051c8cf
5 changed files with 45 additions and 3 deletions

View File

@@ -3,6 +3,14 @@ en:
pages:
changelog:
title: What's new
privacy:
title: Privacy Policy
heading: Privacy Policy
placeholder: Privacy policy content will be displayed here.
terms:
title: Terms of Service
heading: Terms of Service
placeholder: Terms of service content will be displayed here.
dashboard:
welcome: "Welcome back, %{name}"
subtitle: "Here's what's happening with your finances"