Show latest list sorted by creation date

I (kinda) solve this on my forum by using redirect links, thanks to this post:



Change yoursite.com for the name of your site.

[quote=]
The following script achieves the intended result when added to </head> via Customize:

<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]

NOTE: If you are a developer, please understand that I’m not. Please dont hate me for doing this :stuck_out_tongue_closed_eyes: I know this is not the proper way to do this.

1 Like