mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 19:52:53 +00:00
committed by
Rainer Killinger
parent
82ba5f8121
commit
fdee2db8a4
@@ -29,6 +29,7 @@ export class ExternalLinkComponent {
|
||||
constructor(private browser: Browser) {}
|
||||
|
||||
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
|
||||
*/
|
||||
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