Getting unsafe url error

Answered here. You’re undoing the sanitization by using interpolation.