1602/railway-routes — pull request #3 by tbuckley (2012-01-25 07:53:02+00:00)
Title: Moved root paths case before split() so it's not testing against an array

urlNameHelper('', '') should return 'root' but instead returns '' since the split('/') command returns an array that is then tested against '' and '/'; moving the root test before the split fixes the issue.