diff --git a/lib/common.lib.php b/lib/common.lib.php
index 257515e5a..19c15393b 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -865,8 +865,10 @@ function subject_sort_link($col, $query_string='', $flag='asc')
$arr_query[] = 'page='.$page;
$qstr = implode("&", $arr_query);
- $url = G5_HTTP_BBS_URL . "/board.php?{$qstr}";
- return '';
+ parse_str(html_entity_decode($qstr), $qstr_array);
+ $url = short_url_clean(get_params_merge_url($qstr_array));
+
+ return '';
}