I'm building an angular2 application/widget that will be embedded into TYPO3 as a plugin that can be inserted on any content page. This means it could end up at different root paths e.g.:
/page1/app
/page/subpage/subpage/whatever
The global base url (base href=..) is already set by TYPO3 and can't be changed. How can I give angular some kind of root prefix so that it can build up its routes correctly?
I'm using the new router as documented here: https://angular.io/docs/ts/latest/guide/router.html