build search page url as a permalink