Support routing with history API