Skip to content

Commit 8f417aa

Browse files
committed
fix: usage of contentSourceEditPattern
1 parent c3753ec commit 8f417aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/extension/app/store/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,8 @@ export class AppStore {
12931293
}
12941294

12951295
let updatedStatus = await this.fetchStatus(false, true, isReview);
1296-
let editUrl = updatedStatus.edit?.url || this.getBYOMSourceUrl(updatedStatus);
1296+
// prefer configured contentSourceEditPattern URL; otherwise fall back to status edit URL.
1297+
let editUrl = this.getBYOMSourceUrl(updatedStatus) || updatedStatus.edit?.url;
12971298

12981299
if (isReview) {
12991300
// restore original pathname and state
@@ -1302,7 +1303,8 @@ export class AppStore {
13021303
if (!editUrl) {
13031304
// no snapshot source, fall back to original edit URL
13041305
updatedStatus = await this.fetchStatus(false, true);
1305-
editUrl = updatedStatus.edit?.url || this.getBYOMSourceUrl(updatedStatus);
1306+
// prefer configured contentSourceEditPattern URL; otherwise fall back to status edit URL.
1307+
editUrl = this.getBYOMSourceUrl(updatedStatus) || updatedStatus.edit?.url;
13061308
}
13071309
}
13081310

0 commit comments

Comments
 (0)