Opened 8 years ago

Last modified 3 years ago

#13958 assigned enhancement

Add HTML5 history support to dojo.hash

Reported by: Rob Retchless Owned by: dylan
Priority: high Milestone: 1.15
Component: Core Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

I've been working on adding HTML5 history support to dojo.hash to enable RESTful URLs in Ajax applications. I've come up with a set of overrides to dojo.hash that enable this to work in my app, but I'm wondering if there's value in pushing this into dojo so that the greater community can benefit.

Here's a blog post describing the solution:

http://retchless.blogspot.com/2011/09/resource-oriented-urls-with-dojohash.html

Change History (9)

comment:1 Changed 8 years ago by Adam Peller

Milestone: tbd1.8

comment:2 Changed 8 years ago by Adam Peller

Owner: set to Rob Retchless

comment:3 Changed 7 years ago by Colin Snover

Milestone: 1.82.0

1.8 is frozen. Move all enhancements to next release. If you need an exemption from the freeze for this ticket, contact me immediately.

comment:4 Changed 5 years ago by Karl Tiedt

so I take it this never made it into 1.9 either? Would this also include a patch for router or is that even needed (since no patch ever got attached to look at)

comment:5 Changed 4 years ago by Philippe Soares

I'd love to see this included in the next release... I see it's been now scheduled for 2.0. Is it a definitive guarantee that it will be included ?

comment:6 Changed 4 years ago by dylan

So today, you can fairly easily extend dojo/router with support for the HTML5 history API. See a simple example at https://www.sitepen.com/blog/2015/02/27/optimized-navigation-isomorphic-resources/

For Dojo 2, the roadmap is at https://dojotoolkit.org/community/roadmap/ (see the section on history/routing). We are debating whether the minimum browser for Dojo 2 will be IE9 or IE10. If IE10, then every browser we support will have native support for both hashchange as well as history API, and we will just build the router on the native APIs. If IE9, then we will provide a shim for the history API. A lot of the dojo/hash code in use today is primarily to support older browsers like IE6-8 and its need will go away.

comment:7 Changed 4 years ago by dylan

Milestone: 2.01.12
Owner: changed from Rob Retchless to dylan
Status: newassigned

comment:8 Changed 4 years ago by dylan

#18112 is a duplicate of this ticket.

comment:9 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.