diff --git a/pro-tip-lib.pl b/pro-tip-lib.pl index 0365682bf..0fd50df7e 100755 --- a/pro-tip-lib.pl +++ b/pro-tip-lib.pl @@ -156,6 +156,8 @@ sub alert_pro_tip $alert_body1 = "$alert_body1"; $alert_body2 = "$alert_body2"; } +my $target_link = $virtualmin_shop_link_cat; +$target_link = $opts->{'target_link'} if ($opts->{'target_link'}); my $form = $ptitle . &ui_form_start("@{[&get_webprefix_safe()]}/$module_name/set_seen_pro_tip.cgi", "post") . $alert_body1 . @@ -164,7 +166,7 @@ sub alert_pro_tip ($return_url ? &ui_hidden("return_url", $return_url) : "") . &ui_form_end([ $hide_button_text2 ? [ undef, $hide_button_text2, undef, undef, - "onclick=\"window.open('$virtualmin_shop_link_cat','_blank');event.preventDefault();event.stopPropagation();\"", + "onclick=\"window.open('$target_link','_blank');event.preventDefault();event.stopPropagation();\"", $hide_button_icon2, $btncls ] : undef, $hide_button_text3 ? [ 'remind', $hide_button_text3, undef, undef, undef, $hide_button_icon3 ] : undef, $hide_button_text ? [ undef, $hide_button_text, undef, undef, undef, $hide_button_icon ] : undef ], undef, 1);