按创建日期排序显示最新列表

我(算是)在我的论坛上通过重定向链接解决了这个问题,感谢这篇帖子:



yoursite.com 替换为您网站的名称。

[quote=]
以下脚本在通过“自定义”添加到 <head> 后可实现预期效果:

<script type="text/discourse-plugin" version="0.8.19">
api.onPageChange(() => {
	if ( window.location.href === "https://yoursite.com/latest" ) {
		window.location.replace( "https://yoursite.com/latest?order=created" );
	}
});
</script>

[/quote]

注意: 如果您是开发者,请理解我并不是。请不要因此讨厌我 :stuck_out_tongue_closed_eyes: 我知道这并不是正确的做法。

1 个赞