def prepare_rawtoredirecturl(self, alerts_data):
        """
        Prepare a data for subfield rawToRedirectedUrls in alert_data.

        Args:
            alerts_data (json): alert data received via Dataminr RTAP.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            if alerts_data.get("internalOnly"):
                internal_only = alerts_data.get("internalOnly")
                redirect_link = internal_only.get("redirectLinks")
                if redirect_link:
                    redirect_urls = redirect_link.get("rawToRedirectedUrls")
                    if redirect_urls:
                        alerts_data["internalOnly"]["redirectLinks"][
                            "rawToRedirectedUrls"
                        ] = [redirect_urls]
        except KeyError as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise DataminrPulseException(err)
        except Exception as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise DataminrPulseException(err)

        Prepare a data for subfield rawToRedirectedUrls in alert_data.

        Args:
            alerts_data (json): alert data received via Dataminr RTAP.
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsSentinelActivity/dataminr_pulse.py