mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-18459] Fix invalidateSession is called when auth is not initilized by js-api (#9152)
* [AAE-18459] Replace all placeholders if the configuration key is an object * [AAE-18459] don't invalidate session if authentication is not handled by js-api
This commit is contained in:
@@ -123,9 +123,9 @@ export class AppConfigService {
|
||||
}
|
||||
|
||||
if (typeof result === 'object') {
|
||||
result = JSON.parse(JSON.stringify(result).replace('{hostname}', this.getLocationHostname()));
|
||||
result = JSON.parse(JSON.stringify(result).replace('{:port}', this.getLocationPort(':')));
|
||||
result = JSON.parse(JSON.stringify(result).replace('{protocol}', this.getLocationProtocol()));
|
||||
result = JSON.parse(JSON.stringify(result).replace(/{hostname}/g, this.getLocationHostname()));
|
||||
result = JSON.parse(JSON.stringify(result).replace(/{:port}/g, this.getLocationPort(':')));
|
||||
result = JSON.parse(JSON.stringify(result).replace(/{protocol}/g, this.getLocationProtocol()));
|
||||
}
|
||||
|
||||
if (result === undefined) {
|
||||
|
Reference in New Issue
Block a user