Skip to content

Commit 16abc75

Browse files
authored
FIX: rewind's urls missing subfolder path (#36632)
URLs missing `getURL`'s subfolder prepending.
1 parent 297608d commit 16abc75

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

plugins/discourse-rewind/assets/javascripts/discourse/components/reports/chat-usage.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default class ChatUsage extends Component {
138138
{{#each this.favoriteChannels as |channel|}}
139139
<a
140140
class="chat-channel-link"
141-
href={{concat "/chat/c/-/" channel.channel_id}}
141+
href={{getURL (concat "/chat/c/-/" channel.channel_id)}}
142142
>
143143
<span
144144
class="chat-channel-link__name"

plugins/discourse-rewind/assets/javascripts/discourse/components/reports/invites.gjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Component from "@glimmer/component";
22
import { concat } from "@ember/helper";
33
import avatar from "discourse/helpers/bound-avatar-template";
44
import number from "discourse/helpers/number";
5+
import getURL from "discourse/lib/get-url";
56
import { i18n } from "discourse-i18n";
67

78
export default class Invites extends Component {
@@ -103,7 +104,7 @@ export default class Invites extends Component {
103104
</div>
104105

105106
<a
106-
href={{concat "/u/" this.mostActiveInvitee.username}}
107+
href={{getURL (concat "/u/" this.mostActiveInvitee.username)}}
107108
class="guest-book__signature"
108109
>
109110
{{avatar

plugins/discourse-rewind/assets/javascripts/discourse/components/reports/most-viewed-tags.gjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { concat, fn } from "@ember/helper";
44
import { on } from "@ember/modifier";
55
import { action } from "@ember/object";
66
import concatClass from "discourse/helpers/concat-class";
7+
import getURL from "discourse/lib/get-url";
78
import { eq } from "discourse/truth-helpers";
89
import { i18n } from "discourse-i18n";
910

@@ -39,14 +40,14 @@ export default class MostViewedTags extends Component {
3940
"folder-wrapper"
4041
(if (eq this.openedTag data.name) "--opened" "")
4142
}}
42-
href={{concat "/tag/" data.name}}
43+
href={{getURL (concat "/tag/" data.name)}}
4344
{{on "click" (fn this.handleFolderClick data.name)}}
4445
>
4546
<span class="folder-tab"></span>
4647
<div class="rewind-card">
4748
<p
4849
class="most-viewed-tags__tag"
49-
href={{concat "/tag/" data.name}}
50+
href={{getURL (concat "/tag/" data.name)}}
5051
>
5152
#{{data.name}}
5253
</p>

0 commit comments

Comments
 (0)