Sin título
# suitecommerce
m
Sin título
c
Hi Martin. Thank you so much for the response
I have checked with the backbone library atRoot function
Its already having below code:
atRoot: function() { var path = this.location.pathname.replace(/[^\/]$/, '$&/'); return path === this.root && !this.getSearch(); }
m
did you check on backbone.custom.js ?
that is the one used by SCA
c
Yes in backbone.custom.js I have found without search and I have added it and deployed just now and still url is stripping off
m
Did you clear cache ?
I applied the fix here https://possupply.com?preview=3434
and it’s working as it should
c
Yes I have cleared the cache as well. Could you please confirm did you change it only in the backbone.custom.js?
I have tried this in sandbox martin
m
yes i changed only that on the backbone.custom
do you have the url ?
c
Yes I will send it
m
thanks!
m
atRoot:function(){return this.location.pathname.replace(/[^\/]$/,“$&/“)===this.root}
be sure that the deployment is on the correct folder
i’m not seeing the change on the atRoot function
c
atRoot:function(){return this.location.pathname.replace(/[^\/]$/,“$&/“)===this.root}
m
the function should be
atRoot:function(){return this.location.pathname.replace(/[^\/]$/,“$&/“)===this.root && !this.getSearch()}
c
Sure may be there might be a deployment issue.
I will cross check once again and will get back to you martin
m
sure
Let me know if you have any questions
c
Sure Martin. Thanks for the help
It's working fine now Martin
Thanks for the help
Is there any impact on site after changing this?
m
Great to hear, no there’s no impact at all
c
Thanks for the confirmation Martin 😊