Use relative path for categories and posts links

Fixes an issue when previewing categories and posts links locally
(previously, the links would redirect to the deployed address
instead of the relative address).