diff --git a/app/scripts.babel/popup.js b/app/scripts.babel/popup.js index a5dd0078..4c19902c 100644 --- a/app/scripts.babel/popup.js +++ b/app/scripts.babel/popup.js @@ -284,12 +284,12 @@ limitations under the License. regexes.jsf = {}; regexes.jsf.nxpath = new RegExp(`(?:nxpath/(?${regexes.repo.source})(?${regexes.path.source}))`); regexes.jsf.nxdoc = new RegExp(`(?:nxdoc/(?${regexes.repo.source})/(?${regexes.uuid.source}))`); - regexes.jsf.doc = new RegExp(`/nuxeo/(${regexes.jsf.nxpath.source}|${regexes.jsf.nxdoc.source})`); + regexes.jsf.doc = new RegExp(`/(${regexes.jsf.nxpath.source}|${regexes.jsf.nxdoc.source})`); regexes.ui = {}; regexes.ui.browse = new RegExp('(?:browse(?\/.+?(?=\\?|$)))'); regexes.ui.docid = new RegExp(`(?:doc[\/A-Za-z_\.0-9]+(?${regexes.uuid.source}))`); - regexes.ui.doc = new RegExp(`/nuxeo(?:/repo/(?${regexes.repo.source})|)/ui/#!/(?:${regexes.ui.browse.source}|${regexes.ui.docid.source})`); + regexes.ui.doc = new RegExp(`/(?:repo/(?${regexes.repo.source})|)ui/#!/(?:${regexes.ui.browse.source}|${regexes.ui.docid.source})`); function getJsonFromPath(input) { input = decodeURIComponent(input);