used osc_search_url helper, fixed issues with search form and permalinks, fixed #834