       @rebuildUrl = =>
         options = Array.from(arguments).shift()
         options['animals_ids'] ||= Object.keys(@selectedItemsIndex)
+
+        parameters = options['parameters'] || false
         base_url = options['base_url'] || $('a[data-target=animal_group_changing]').attr('href')
+
         delete options['base_url']
+        delete options['parameters']
 
-        "#{base_url}&#{$.param(options)}"
+        base_url += "&#{$.param(options)}" if parameters
+
+        base_url
 
       @impactOnSelection = =>
 

    return

  $(document).on 'click', 'a[data-toggle=dialog]', (e) =>
    
    E.dialog.open app.rebuildUrl({base_url: e.currentTarget.getAttribute('href')}),
      returns:
        success: (frame, data, status, request) ->



        params = {}
        params['container'] = container.id() unless container is undefined
        params['parameters'] = true

        # find if any group changed
        for id, item of @selectedItemsIndex
