Fix linked item support to handle https and bitstream download clicks.