```coffeescript
$(document).on 'ready page:load page:restore', ->
  if gon.adult_validation is true and Cookies.get('adult') is undefined
    vex.dialog.confirm
      message: gon.adult_not_validated_popup_content
      buttons: [
        $.extend({}, vex.dialog.buttons.YES, text: I18n.t('true', locale: gon.language))
        $.extend({}, vex.dialog.buttons.NO, text: I18n.t('false', locale: gon.language))
      ]
      callback: (value) ->
        window.location.href = 'http://google.fr' if value is false
        Cookies.set('adult', 'validated') if value is true```

Update site redirected to if user doesn't agree on the vex confirm popup
user
```coffeescript
$(document).on 'ready page:load page:restore', ->
  if gon.adult_validation is true and Cookies.get('adult') is undefined
    vex.dialog.confirm
      message: gon.adult_not_validated_popup_content
      buttons: [
        $.extend({}, vex.dialog.buttons.YES, text: I18n.t('true', locale: gon.language))
        $.extend({}, vex.dialog.buttons.NO, text: I18n.t('false', locale: gon.language))
      ]
      callback: (value) ->
        window.location.href = 'http://lr-agenceweb.fr' if value is false
        Cookies.set('adult', 'validated') if value is true```
assistant