Problem

While the hyperref package provides the \\url{} command it doesn’t handle line breaks well.

Solution

Use the package xurl.