mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
committed by
Rainer Killinger
parent
82ba5f8121
commit
fdee2db8a4
@@ -29,6 +29,7 @@ export class ExternalLinkComponent {
|
|||||||
constructor(private browser: Browser) {}
|
constructor(private browser: Browser) {}
|
||||||
|
|
||||||
onLinkClick(url: string) {
|
onLinkClick(url: string) {
|
||||||
this.browser.open(url);
|
// make sure if the url is valid and then open it in the browser (prevent problem in iOS)
|
||||||
|
this.browser.open(new URL(url).href);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export class MessageDetailContentComponent {
|
|||||||
* @param url Web address to open
|
* @param url Web address to open
|
||||||
*/
|
*/
|
||||||
onLinkClick(url: string) {
|
onLinkClick(url: string) {
|
||||||
this.browser.open(url);
|
// make sure if the url is valid and then open it in the browser (prevent problem in iOS)
|
||||||
|
this.browser.open(new URL(url).href);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user