diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..80d9184 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: URLRedirector.mpk + +URLRedirector.mpk: + cd src && zip -r ../URLRedirector.mpk * + +clean: + rm -f URLRedirector.mpk diff --git a/src/URLRedirector/URLRedirector.xml b/src/URLRedirector/URLRedirector.xml index f9d85ee..4f1dd22 100644 --- a/src/URLRedirector/URLRedirector.xml +++ b/src/URLRedirector/URLRedirector.xml @@ -41,7 +41,8 @@ IlBTMrB9VgsAgP8BON24AjtZfcoAAAAASUVORK5CYII= Data source In what type of webpage must the URL be open. - Same browser page + Same browser page, same frame + Same browser page, full body New browser page diff --git a/src/URLRedirector/widget/URLRedirector.js b/src/URLRedirector/widget/URLRedirector.js index dd22a8c..73f2c89 100644 --- a/src/URLRedirector/widget/URLRedirector.js +++ b/src/URLRedirector/widget/URLRedirector.js @@ -112,6 +112,10 @@ define([ { window.location.replace(url); } + else if (this.Target === "Top") + { + window.top.location.replace(url); + } else { window.open(url);