Page MenuHomePhorge

D25077.1734704372.diff
No OneTemporary

D25077.1734704372.diff

diff --git a/webroot/rsrc/js/core/FileUpload.js b/webroot/rsrc/js/core/FileUpload.js
--- a/webroot/rsrc/js/core/FileUpload.js
+++ b/webroot/rsrc/js/core/FileUpload.js
@@ -115,7 +115,16 @@
switch (this.getStatus()) {
case 'done':
- var link = JX.$N('a', {href: this.getPageURI()}, this.getMonogram());
+
+ // In this case the File upload was successful
+
+ // External links are evil as default.
+ // Believe it or not, but some Phorge users brainstormed
+ // for one hour for this specific target="_blank".
+ // https://we.phorge.it/T15172
+ var target = '_blank';
+
+ var link = JX.$N('a', {href: this.getPageURI(), target: target}, this.getMonogram());
content = [
JX.$N('strong', {}, ['Upload Complete (', link, ')']),

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 14:19 (15 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018742
Default Alt Text
D25077.1734704372.diff (839 B)

Event Timeline