File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/info/feedback/feedback-form Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { TranslateService } from '@ngx-translate/core';
99import { AuthService } from '../../../core/auth/auth.service' ;
1010import { EPerson } from '../../../core/eperson/models/eperson.model' ;
1111import { getFirstCompletedRemoteData } from '../../../core/shared/operators' ;
12- import { Router } from '@angular/router' ;
12+ import { Router , UrlSegmentGroup } from '@angular/router' ;
1313import { getHomePageRoute } from '../../../app-routing-paths' ;
1414import { take } from 'rxjs/operators' ;
1515import { NativeWindowRef , NativeWindowService } from '../../../core/services/window.service' ;
@@ -70,7 +70,7 @@ export class FeedbackFormComponent implements OnInit {
7070 * Function to create the feedback from form values
7171 */
7272 createFeedback ( ) : void {
73- const url = this . feedbackForm . value . page ;
73+ const url = this . feedbackForm . value . page . replace ( this . _window . nativeWindow . origin , '' ) ;
7474 this . feedbackDataService . create ( this . feedbackForm . value ) . pipe ( getFirstCompletedRemoteData ( ) ) . subscribe ( ( response : RemoteData < NoContent > ) => {
7575 if ( response . isSuccess ) {
7676 this . notificationsService . success ( this . translate . instant ( 'info.feedback.create.success' ) ) ;
You can’t perform that action at this time.
0 commit comments