Enable internal linking with queries
Links of format ?query#hash now work.