Skip to content

Commit

Permalink
Make domain interpolation on feature flag page work with !
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyroberts committed Jul 22, 2024
1 parent 360c019 commit e6611c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions corehq/apps/toggle_ui/static/toggle_ui/js/edit-flag.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ hqDefine('toggle_ui/js/edit-flag', [
self.saveButtonBottom = self.createSaveButton();

self.getNamespaceHtml = function (namespace, value) {
if (value && value[0] === '!') {
value = value.replace(/^!/, '');
}
if (namespace === 'domain') {
return '<a href="' + initialPageData.reverse('domain_internal_settings', value) + '">domain <i class="fa fa-external-link"></i></a>';
} else {
Expand Down

0 comments on commit e6611c5

Please sign in to comment.