Starting url generation for search

Backup before things get too spaghetti