Fix when #resource/id url paths