mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:18:42 +00:00
fix: wrong blog tag address when not using subdomain
When the blog doesn't use subdomain, the tag address will be wrong. Add a situation check to find out the right tag address.
This commit is contained in:
parent
2c303fd7d4
commit
10deda3561
@ -18,3 +18,6 @@
|
||||
</div><!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var uojBlogUrl = '<?= HTML::blog_url(UOJContext::userid(), '')?>';
|
||||
</script>
|
@ -287,7 +287,7 @@ $.fn.uoj_problem_tag = function() {
|
||||
}
|
||||
$.fn.uoj_blog_tag = function() {
|
||||
return this.each(function() {
|
||||
$(this).attr('href', '/archive?tag=' + encodeURIComponent($(this).text()));
|
||||
$(this).attr('href', uojBlogUrl + '/archive?tag=' + encodeURIComponent($(this).text()));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user