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..70c3220 100644
--- a/src/URLRedirector/widget/URLRedirector.js
+++ b/src/URLRedirector/widget/URLRedirector.js
@@ -108,12 +108,11 @@ define([
_redirectTo : function(url, callback) {
callback();
- if(this.Target === "Page")
- {
+ if(this.Target === "Page") {
window.location.replace(url);
- }
- else
- {
+ } else if (this.Target === "Top") {
+ window.top.location.replace(url);
+ } else {
window.open(url);
}
}
diff --git a/test/Test.mpr b/test/Test.mpr
index 2410c8f..2232d85 100644
Binary files a/test/Test.mpr and b/test/Test.mpr differ
diff --git a/test/Test.mpr.bak b/test/Test.mpr.bak
deleted file mode 100644
index 01f9e02..0000000
Binary files a/test/Test.mpr.bak and /dev/null differ
diff --git a/test/widgets/URLRedirector.mpk b/test/widgets/URLRedirector.mpk
index 7662934..a3fa946 100644
Binary files a/test/widgets/URLRedirector.mpk and b/test/widgets/URLRedirector.mpk differ