Skip to content

Commit

Permalink
fix(options): 🗑️ Fix target URLs. (#1280)
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 authored Sep 20, 2023
1 parent 5873528 commit dcc10f0
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 dcc10f0

Please sign in to comment.