Hiya! Does `gb.setURL('/page')` do something funda...
# ask-questions
b
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
b
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
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
Thanks for clarifying. I suspected as much.
👍 1