Description
providers: [{provide: APP_BASE_HREF, useValue: '/'}]
})
class AppModule {
ngDoBootstrap() {}
}
2. Now to prevent the client-side parameters being sent to backend Liferay DXP we need to set a router option to use a hash (i.e. /#/{route}). Open your app-routing.module.ts file and in your @NgModule decorator set it like below:
|
3. After that, deploy and test it.
|
Inside your Liferay DXP when you call some route from your Angular Application you will see in the browser the ${domain}/#/{route}.
Severity
Severity 2
Fixed Version(s)
- Liferay Portal 7.2.1
- June 2020 source patch for Liferay Portal 7.1.3. Details for working with source patches can be found on the Patching Liferay Portal page.
Publication Date:
Found a Bug?
If you have found, or think you have found a bug, help us to help you by letting us know!
Found a Security Vulnerability?
There's a different process available if you have a security issue to report...
Hall of Fame!
Raise your profile - report security vulnerabilities and enter the Hall of Fame!