 
     # Builds the URL string from a route.
     _getURLFromRoute: (panel) ->
+
         # Clones the parameter because we are going to mutate it
         panel = _.clone panel
 

            args = @_extractParameters route.pattern, secondPanelString
            # remove the last argument which is alway `null`, not sure why
            args.pop()
            secondPanelInfo = action: route.key, parameters: args
        else
            secondPanelInfo = null


        # normalizes the firstPanelInfo
        firstPanelInfo = action: name, parameters: firstPanelParameters
        return [firstPanelInfo, secondPanelInfo]


    ###

            return filledPattern
        else
            return ''


    # Merges defaut parameters into a panel info if there are missing parameters
    _mergeDefaultParameter: (panelInfo) ->
        panelInfo = _.clone panelInfo
        parameters = _.clone panelInfo.parameters or []
        # gets default values, if there are
        if (defaultParameters = @_getDefaultParameters panelInfo.action)?

            # merges the parameters in the relevant place
            for defaultParameter, key in defaultParameters
                if not parameters[key]?
                    parameters.splice key, 0, defaultParameter

        panelInfo.parameters = parameters
        return panelInfo
