facebookarchive/facebook-instant-articles-sdk-php

Query params in related articles

greeflas opened this issue · 0 comments

Steps required to reproduce the problem

Hello! I have a question. Is it possible to add query params to related articles URL using SDK?

RelatedItem::create()->withURL($article->url . '?utm_source=fb&utm_medium=rads')

Expected Result

  • https://www.site.local/some-page.html?utm_source=fb&utm_medium=rads

Actual Result

I have & instead of & in URL.

  • https://www.site.local/some-page.html?utm_source=fb&utm_medium=rads