Fixed query vars in scaffold links

Signed-off-by: Tom Wright <tom@inflatablecookie.com>