I feel like there must be tidier ways of adding query strings to these URLs, but I'm not sure what right now.