Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Created February 7, 2018 23:35
Show Gist options
  • Save rruhlen/f2a8ece586258d1a68ca8278cd5118f5 to your computer and use it in GitHub Desktop.
Save rruhlen/f2a8ece586258d1a68ca8278cd5118f5 to your computer and use it in GitHub Desktop.
Insert brand id parameter to article rating liquid block. Fixes issue where the default brand has a CNAME and the other brands need to use the Desk subdomain.
<!-- fix multibrand issue with article rating links -->
{% capture tempfix %}rate?b_id={{desk.current_brand.id}}&{% endcapture %}
{{ rate_block | replace: "rate?", tempfix}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment