{%- comment -%}
IBA Spring 2026 Router Page
Paste into a Custom Liquid section on /pages/spring-2026 (or any router page)
Logic:
- If customer tag contains "legacy" => redirect to Legacy page
- Else if tag contains "new" => redirect to New page
- Else (logged-in but no tag match) => redirect to New page
- If not logged in => go to login and return back to this page
{%- endcomment -%}
{%- assign new_url = 'https://intlbaseball.com/pages/spring-season-2026-page' -%}
{%- assign legacy_url = 'https://intlbaseball.com/pages/spring-2026-legacy-dues' -%}
{%- assign destination = new_url -%}
{%- if customer -%}
{%- assign tags_joined = customer.tags | join: ',' -%}
{%- assign tags_lower = tags_joined | downcase -%}
{%- if tags_lower contains 'legacy' -%}
{%- assign destination = legacy_url -%}
{%- elsif tags_lower contains 'new' -%}
{%- assign destination = new_url -%}
{%- else -%}
{%- assign destination = new_url -%}
{%- endif -%}
{%- else -%}
{%- assign destination = '/account/login?return_url=' | append: request.path | url_encode -%}
{%- endif -%}
Taking you to your Spring 2026 page
Please wait, routing based on your account type.
If you are not redirected, click here.
