Plugin Directory

Changeset 3328185


Ignore:
Timestamp:
07/15/2025 11:35:03 AM (9 months ago)
Author:
jumptech
Message:

fix link to consent archive access key generator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • avacy/trunk/src/views/avacy-dashboard.php

    r3305818 r3328185  
    146146                        </p>
    147147                        <p>
    148                             <?php
    149                                 $consent_solution_href = esc_url($base_api_url).'/redirect/consent-solution/'.get_option('avacy_tenant').'/'.get_option('avacy_webspace_key');
     148                            <?php
     149                                $webspaceKey = get_option('avacy_webspace_key');
     150                                if(strpos($webspaceKey, '|') !== false) {
     151                                    $keyParts = explode('|', $webspaceKey);
     152                                    $tenant = $keyParts[0];
     153                                    $webspaceKey = $keyParts[1];
     154                                } else {
     155                                    $tenant = get_option('avacy_tenant');
     156                                }
     157                                $consent_solution_href = esc_url($base_api_url).'/redirect/consent-solution/'.$tenant.'/'.$webspaceKey;
     158                           
    150159                                echo wp_kses_post(sprintf(__('In the <a href=%s target="_blank">consent archive section</a>, create a new token to link the service with WordPress and enter it in the field below.', 'avacy'), esc_url($consent_solution_href)));
    151160                            ?>
Note: See TracChangeset for help on using the changeset viewer.