MOBILE-3565 link: Fix core-link with long URLs
parent
8c1fc373c9
commit
a65c0f1d19
|
@ -31,6 +31,7 @@ import { CoreConstants } from '@core/constants';
|
||||||
})
|
})
|
||||||
export class CoreLinkDirective implements OnInit {
|
export class CoreLinkDirective implements OnInit {
|
||||||
|
|
||||||
|
@Input() href?: string; // Link URL.
|
||||||
@Input() capture?: boolean | string; // If the link needs to be captured by the app.
|
@Input() capture?: boolean | string; // If the link needs to be captured by the app.
|
||||||
@Input() inApp?: boolean | string; // True to open in embedded browser, false to open in system browser.
|
@Input() inApp?: boolean | string; // True to open in embedded browser, false to open in system browser.
|
||||||
/* Whether the link should be opened with auto-login. Accepts the following values:
|
/* Whether the link should be opened with auto-login. Accepts the following values:
|
||||||
|
@ -61,8 +62,7 @@ export class CoreLinkDirective implements OnInit {
|
||||||
return; // Link already treated, stop.
|
return; // Link already treated, stop.
|
||||||
}
|
}
|
||||||
|
|
||||||
let href = this.element.getAttribute('href') || this.element.getAttribute('ng-reflect-href') ||
|
let href = this.href || this.element.getAttribute('href') || this.element.getAttribute('xlink:href');
|
||||||
this.element.getAttribute('xlink:href');
|
|
||||||
|
|
||||||
if (!href || CoreUrlUtils.instance.getUrlScheme(href) == 'javascript') {
|
if (!href || CoreUrlUtils.instance.getUrlScheme(href) == 'javascript') {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue