summaryrefslogtreecommitdiffstats
path: root/ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/components/community.tsx5
-rw-r--r--ui/src/components/main.tsx5
-rw-r--r--ui/src/components/user.tsx5
3 files changed, 12 insertions, 3 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index a8ec9331..712aeb7e 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -175,7 +175,10 @@ export class Community extends Component<any, State> {
<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>
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx
index 403368ab..f4ec779f 100644
--- a/ui/src/components/main.tsx
+++ b/ui/src/components/main.tsx
@@ -435,7 +435,10 @@ export class Main extends Component<any, MainState> {
<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>
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index 6fff538f..b90f8167 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -250,7 +250,10 @@ export class User extends Component<any, UserState> {
/>
</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>