Shopify / Shopify/liquid

Comparison/Check if user is on a legal/policy page

Open
#1,235 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

Is there any way to check if the user is on a legal/policy page in Liquid?

I am creating a theme which has an age verification. On this age verification, there would be links to the various policies, and would like the user to be able to see those policies without having to confirm their age.

I know how to get the template, but the legal/policy pages don't have a template, so couldn't do that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no file or test entry point; begin by reviewing how Liquid exposes the current template and how themes represent legal or policy pages. Confirm whether a page check is already supported, then define the expected behavior for age-verification links and add coverage for the supported cases.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.