Update url.js

Fix double '//' in menu and title links when config.root is not '/'