Skip to content

Commit

Permalink
fix(options): 🗑️ Fix target URLs.
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
  • Loading branch information
whizzzkid committed Sep 17, 2023
1 parent 5873528 commit 737f94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-on/src/options/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function optionStore (state, emitter) {
state.redirectRules = existingRedirectRules.map(rule => ({
id: rule.id,
origin: rule.condition.regexFilter?.replace(RULE_REGEX_ENDING, '(.*)').replaceAll('\\', ''),
target: rule.action.redirect?.regexSubstitution?.replace('\\1', '<resource-path>')
target: rule.action.redirect?.regexSubstitution
}))
emitter.emit('render')
}
Expand Down

0 comments on commit 737f94c

Please sign in to comment.