Fixes problem with other urls passed into the function.

When urls are passed into this function, they originate from Rails.
Rails already knows the full path, so the expansion only should happen
on the default project list.
Merge pull request #35 from opf/fix/urls-coming-from-rails-already-have-the-full-path

Fixes problem with other urls passed into the function.