documentcloud/backbone — Issue #1051: support for ".." and "./"-urls in History.navigate
Author: OttoAllmendinger
Created: 2012-02-27 16:50:34+00:00
State: open

It would be nice if relative urls were supported, even if a root path was passed to `Backbone.history.start()`.

Calling `Backbone.history.navigate("..")` instead of calling it with the full parent path is often more comfortable.

The the html5 `pushState` interface handles these kinds of relative paths beginning with `.` and `..` correctly.

To differentiate between "real" relative paths like `..` and `./foo` and the usual "semi-relative" paths that should get the root prefix, Backbone could check if the first character is a dot.