Search code examples
javascripthtmlurlbrowser-history

davis.js with full address links


i am trying to use davis.js history plugin but i have problem (using codeigniter, but that isn't important).

var app = Davis(function () {
this.get('http://localhost/folder/controller/:id', function (req) {
        alert("Hello " + req.params['id'])
    })
})

app.start()

and link:

<a href="http://localhost/folder/controller/2">ID</a>

in this way it doesn't work, becouse it is full address, how can i make davis to look full address ?

Or you can suggest me another plugin ?


Solution

  • Found the solution for relative urls..