I am currently working in Angular 2 with a TypeScript version of 2.3. The problem I am encountering is that after setting the target to _blank, the link is redirecting to the default page instead of the intended destination.
<a href="javascript:void(0);" title="Student's view" [routerLink]="['/app/quotationsview/e1574258']" target="_blank"><i class="fa fa-eye" aria-hidden="true"></i></a>
Here is an excerpt from my tsconfig file:
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"target": "es5",
"module": "es2015",
"baseUrl": "",
"types": [],
"lib": [
"es5",
"es6",
"dom"
]
},
}
This issue only occurs after building the distribution and works correctly on ng serve.