Update permalink function for widget.