Update url.js

Fix double '//' in menu and title links when config.root is not '/'
Use === instead of ==

Thanks.
Merge pull request #805 from mfkddcwy/patch-1

Update url.js