Skip to content

Simplify donation link logic with dynamic country domain#56

Merged
fifle merged 1 commit intomasterfrom
claude/fix-baltic-donation-links-0XA2i
Mar 11, 2026
Merged

Simplify donation link logic with dynamic country domain#56
fifle merged 1 commit intomasterfrom
claude/fix-baltic-donation-links-0XA2i

Conversation

@fifle
Copy link
Owner

@fifle fifle commented Mar 11, 2026

Summary

Refactored the donation link in the footer to use a single dynamic URL instead of conditional logic based on the country environment variable.

Key Changes

  • Removed conditional @if statement that branched donation links based on COUNTRY environment variable
  • Consolidated to a single donation link that dynamically constructs the domain using donationbox.{{ env('COUNTRY', 'ee') }}
  • Simplified the footer template by eliminating duplicate link markup
  • Maintained backward compatibility with a default fallback to 'ee' country code

Implementation Details

The change replaces country-specific conditional rendering with a template variable approach, allowing the donation link to automatically adapt to different country deployments without requiring separate code paths. This reduces code duplication and makes the footer template more maintainable.

https://claude.ai/code/session_01EAXJJFd2poNuymCVjFT5QR

…L with IBAN

Baltic bank payments are now supported, so all countries can use the same
donation link with IBAN. The URL domain is now dynamic based on the COUNTRY
env variable (e.g., donationbox.ee, donationbox.lv, donationbox.lt).

https://claude.ai/code/session_01EAXJJFd2poNuymCVjFT5QR
@fifle fifle merged commit 547a0ae into master Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants