Skip to content

Commit 3149bbb

Browse files
author
Christian Seel
committed
make use of link_tag_scheme system setting
If no link scheme is set in the config/snippet call, make use of the link_tag_scheme system setting instead of using "-1"
1 parent 37aac1b commit 3149bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/components/wayfinder/wayfinder.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function getData() {
639639
$resultIds[] = $tempDocInfo['id'];
640640
$tempDocInfo['content'] = $tempDocInfo['class_key'] == 'modWebLink' ? $tempDocInfo['content'] : '';
641641
/* create the link */
642-
$linkScheme = $this->_config['fullLink'] ? 'full' : '';
642+
$linkScheme = $this->_config['fullLink'] ? 'full' : $this->modx->getOption('link_tag_scheme',null,'');
643643
if (!empty($this->_config['scheme'])) $linkScheme = $this->_config['scheme'];
644644

645645
if ($this->_config['useWeblinkUrl'] !== 'false' && $tempDocInfo['class_key'] == 'modWebLink') {
@@ -930,4 +930,4 @@ public function modxPrep($value) {
930930
$value = str_replace("}","}",$value);
931931
return $value;
932932
}
933-
}
933+
}

0 commit comments

Comments
 (0)