set directions link based on userAgent string