                         ret += "/date/"+data.date
                 if data.version? and data.version
                         ret += "/version/"+data.version
+                if data.view? and data.view
+                        ret += "/view/"+data.view
                 if /[^\/]*:\/\/[^\/\#]*\#/.test(window.location)
                         ret.replace(/^\//,"#")
                 ret

#                console.log("switching report",window.listController.reports)
                current_index = window.listController.reports.models.indexOf(window.listController.reports.get(@api.current_state.report or 1))
                new_index = (current_index + 1) % window.listController.reports.models.length
                @api.navigate(report: window.listController.reports.models[new_index].id.toString())

        navigate: (old_state,new_state,changed) ->
                if _.intersection(changed, ["demo"]).length > 0

                        list_hidden: false
                        demo: false
                        date: null
                        version: null
                        view: null }
                i = 0
                while i+1 < split.length
                        key = split[i]
