Fix MenuBlock so it works with script_name.

It wasn't working in staging and production because having a path with
script_name set throws the Rails router off.