Skip to content

Commit fcd430e

Browse files
committed
Fix link to target groups filtering
1 parent 0462845 commit fcd430e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/bcc-login/includes/class-bcc-login-visibility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ function post_group_tags_widget($atts) {
10481048
$post_id = get_the_ID();
10491049
if (!$post_id) return false;
10501050

1051-
$attributes = shortcode_atts(array('limit' => 1000, 'with_link' => false), $atts);
1051+
$attributes = shortcode_atts(array('limit' => 100, 'with_link' => true), $atts);
10521052

10531053
$post_groups = get_post_meta($post_id, 'bcc_groups', false);
10541054
$filtering_groups = $this->_settings->filtering_groups;
@@ -1057,7 +1057,7 @@ function post_group_tags_widget($atts) {
10571057
$html = '';
10581058

10591059
foreach ($shown_groups as $group) {
1060-
$link = $attributes['with_link'] == true ? '?target-groups[]='. $group : 'javascript:void(0)';
1060+
$link = $attributes['with_link'] == true ? '/informasjon/?target-groups[]='. $group : 'javascript:void(0)';
10611061
$html .= '<a class="bcc-badge bcc-badge-sm bcc-badge-custom" href="'. $link . '"><i class="material-symbols-rounded">info</i><span>' . $this->get_group_name($group) . '</span></a>';
10621062
}
10631063

0 commit comments

Comments
 (0)