 
         @fancy_total_points_container.text @total_points
         # update permalink while we're at it
-        @permalink.attr 'href', "#{window.location.href.split('?')[0]}?f=#{encodeURI @faction}&d=#{encodeURI @serialize()}"
+        @updatePermaLink()
+        # @permalink.attr 'href', "#{window.location.href.split('?')[0]}?f=#{encodeURI @faction}&d=#{encodeURI @serialize()}&sn=#{encodeURI @current_squad.name}&sno=#{encodeURI @notes.val()}"
         # and text list
         @fancy_container.text ''
         @simple_container.html '<table class="simple-table"></table>'

            @addShip()

    resetCurrentSquad: ->
        @current_squad =
            id: null
            name: $.trim(@squad_name_input.val()) or "Unnamed Squadron"
            dirty: false
            additional_data:
                points: @total_points
                description: ''
                cards: []
                notes: ''
            faction: @faction
        if @total_points > 0
            @current_squad.name = 'Unsaved Squadron'
            @current_squad.dirty = true
        @container.trigger 'xwing-backend:squadNameChanged'
        @container.trigger 'xwing-backend:squadDirtinessChanged'


        @squad_name_placeholder.text ''
        @squad_name_placeholder.append short_name
        @squad_name_input.val @current_squad.name
        @updatePermaLink()

    removeAllShips: ->
        while @ships.length > 0
