How to hide prefix when optional path param is undefined - TanStack