Make uimport URL work for Sites with subfolder

BUGFIX: If you have a site like http://exmaple.com/friendica you will get a wrong url
Merge pull request #963 from tabacha/master

Make uimport URL work for Sites with subfolder