mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
add referrer to pageview events
This commit is contained in:
@@ -35,6 +35,8 @@ import { ServerAuthRequestService } from '../../app/core/auth/server-auth-reques
|
||||
import { ServerInitService } from './server-init.service';
|
||||
import { XhrFactory } from '@angular/common';
|
||||
import { ServerXhrService } from '../../app/core/services/server-xhr.service';
|
||||
import { ReferrerService } from '../../app/core/services/referrer.service';
|
||||
import { ServerReferrerService } from '../../app/core/services/server.referrer.service';
|
||||
|
||||
export function createTranslateLoader(transferState: TransferState) {
|
||||
return new TranslateServerLoader(transferState, 'dist/server/assets/i18n/', '.json');
|
||||
@@ -110,6 +112,10 @@ export function createTranslateLoader(transferState: TransferState) {
|
||||
provide: XhrFactory,
|
||||
useClass: ServerXhrService,
|
||||
},
|
||||
{
|
||||
provide: ReferrerService,
|
||||
useClass: ServerReferrerService,
|
||||
},
|
||||
]
|
||||
})
|
||||
export class ServerAppModule {
|
||||
|
Reference in New Issue
Block a user