Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Builder content link
Builder public api key
c3e3257ff5594facbf478a68d37f766d
What are you trying to accomplish
Use multiple URLs to target a single page
Code stack you are integrating Builder with
NextJS
I recently turned on the switch for Allow targeting to multiple URLs
in the Advanced section of the Settings page. I had previously updated my getStaticPaths
code in NextJS to handle either strings or arrays being passed down in page.data.url
. I see that on the test page I’m using to test out multiple URLs for targeting that the url field is indeed wrapped in an array, but it’s only returning one of the two URLs I have for targeting:
And the JSON coming down for that URL:
I’m not sure if this is a bug, or it’s an issue where I created the secondary URL before I flipped the switch, so it’s not pulling in the secondary URL.
(I’ll try recreating the URL and add a comment if that fixes it)