fixed empty spur

This commit is contained in:
Anton Dyudin 2015-10-20 14:31:09 -07:00
parent fb7a829cff
commit b5679d31ed

View File

@ -275,6 +275,7 @@ window.urb.util = {
},
basepath: function(spur, pathname){
spur = spur || ''
if(spur === '/') spur = ''
pathname = pathname || window.location.pathname
if(pathname[0] == '/') pathname = pathname.slice(1)
pathname = pathname.split("/")