<div class="mb-2">
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
<a
- href={`${document.location.origin}/feeds/c/${this.state.communityName}.xml`}
+ href={`/feeds/c/${this.state.communityName}.xml?sort=${
+ SortType[this.state.sort]
+ }`}
+ target="_blank"
>
<svg class="icon mx-2 text-muted small">
<use xlinkHref="#icon-rss">#</use>
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
</span>
{this.state.type_ == ListingType.All && (
- <a href={`${document.location.origin}/feeds/all.xml`}>
+ <a
+ href={`/feeds/all.xml?sort=${SortType[this.state.sort]}`}
+ target="_blank"
+ >
<svg class="icon mx-1 text-muted small">
<use xlinkHref="#icon-rss">#</use>
</svg>
/>
</span>
<a
- href={`${document.location.origin}/feeds/u/${this.state.username}.xml`}
+ href={`/feeds/u/${this.state.username}.xml?sort=${
+ SortType[this.state.sort]
+ }`}
+ target="_blank"
>
<svg class="icon mx-2 text-muted small">
<use xlinkHref="#icon-rss">#</use>