Override navigate function to include route prefix