https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

billions-house-96196

12/21/2023, 12:21 AM
Hiya! Does
gb.setURL('/page')
do something fundamentally different than setting a URL attribute
gb.setAttributes({url:'/page'})
? I'm guessing yes but don't want to engineer redundancy if it's not necessary.
w

white-fireman-22476

12/21/2023, 3:50 PM
b

billions-house-96196

12/21/2023, 4:29 PM
Thanks for sharing. I actually didn't think to look directly in the code base. Still, I'm having a hard time tracing through to rule out that a url attribute isn't used in the same way. Both functions appear to update experiments.
f

fresh-football-47124

12/21/2023, 4:44 PM
both will cause experiments to refresh, but the attribute url is not used by the visual editor. Similarly, the setURL won't effect any rules that are targeted at the 'url' attribute.
💯 1
b

billions-house-96196

12/21/2023, 4:49 PM
Thanks for clarifying. I suspected as much.
👍 1
3 Views