Implement /foi and /search/<slug>