Fixed a bug in which route '#/search/:text' would translate to '#/:text/search' when the value of text is 'search'.