angular-ab-tests icon indicating copy to clipboard operation
angular-ab-tests copied to clipboard

Setting Cookie Path

Open SrgSteak opened this issue 5 years ago • 1 comments

Is it possible to set the path of a cookie without replacing the cookieHandler? I could make a pullrequest if you want, extending the config with an optional path and adapting the set function.

I like the bundle, really good documentation!

SrgSteak avatar Sep 11 '19 08:09 SrgSteak

Hi @SrgSteak

yes, I think that's a functionality that is indeed missing. Could you open a pull request, and make it configurable from the initialisation of a test?

It should be added as an additional property of AbTestOptions, like domain?:, and then passed it onto generateVersion in the service object.

I'll take care of updating the documentation.

Thanks! Please let me know if you need any help

adrdilauro avatar Sep 15 '19 18:09 adrdilauro