If you have two start pages and they for example have the ids 1 and 18, the current cookiename check with indexOf leads to a bug. If you visited page 18 and switch to 1, the cookie bar doesnt trigger because COOKIEBAR_18 is set and it contains COOKIEBAR_1, so indexOf returns true
If you have two start pages and they for example have the ids 1 and 18, the current cookiename check with
indexOf
leads to a bug. If you visited page 18 and switch to 1, the cookie bar doesnt trigger becauseCOOKIEBAR_18
is set and it containsCOOKIEBAR_1
, soindexOf
returns true