Changed URL format to dynamic query