             loadNext = =>
                 if isVisible()
                     scrollable.removeEventListener 'scroll', loadNext
-                    @redirect @props.buildPaginationUrl()
+                    @redirect @props.paginationUrl
                 else
 
             scrollable.addEventListener 'scroll', loadNext

    onFilter: (ev) ->
        LayoutActionCreator.filterMessages ev.target.dataset.filter

        @redirect @buildUrl
            direction: 'first'
            action: 'account.mailbox.messages.full'
            parameters: MessageStore.getParams()

MessagesSort = React.createClass
    displayName: 'MessagesSort'

        LayoutActionCreator.sortMessages
            field: field

        params = MessageStore.getParams()
        params.accountID = @props.accountID
        params.mailboxID = @props.mailboxID
        @redirect @buildUrl
            direction: 'first'
            action: 'account.mailbox.messages.full'
            parameters: params
