         try
             browsers.create(id, resource)
             console.log 'BrowserInstance loaded.'
-            res.writeHead(301, {'Location' : "/browsers/#{id}"})
+            res.writeHead(301, {'Location' : "/browsers/#{id}/index.html"})
             res.end()
         catch e
             console.log "browsers.create failed"

fs              = require('fs')
express         = require('express')
assert          = require('assert')
URL             = require('url')
path            = require('path')
BrowserManager  = require('./browser_manager')

            # First msg should be the client's browserID
            console.log("Socket.io client handshake: #{browserID}")
            # Look up the client's BrowserInstance
            browsers.find decodeURIComponent(browserID), (browser) ->
                # clientConnected processes client's messages.
                browser.addClient(client)

