@@ -260,6 +260,7 @@ export class ProjectTemplateviewPage implements OnInit {
260260 }
261261
262262 async start ( ) {
263+ await this . router . navigate ( [ `/${ RouterLinks . HOME } ` ] ) ;
263264 if ( this . stateData ?. referenceFrom === 'link' ) {
264265 this . startProjectsFromLink ( ) ;
265266 } else if ( this . project . projectId ) {
@@ -356,6 +357,21 @@ export class ProjectTemplateviewPage implements OnInit {
356357 } )
357358 }
358359 private async showProfileNameConfirmationPopup ( ) {
360+ let params = {
361+ isTargeted :this . isTargeted ,
362+ programId : this . programId ,
363+ solutionId :this . solutionId ,
364+ isATargetedSolution :this . isATargetedSolution ,
365+ type :this . isAssignedProject ? 'assignedToMe' : 'createdByMe'
366+ }
367+ this . router . navigate ( [ `${ RouterLinks . PROJECT } /${ RouterLinks . PROJECT_TEMPLATE } ` , this . solutionId ] , {
368+ queryParams : params ,
369+ skipLocationChange : false ,
370+ replaceUrl : true ,
371+ state : {
372+ "referenceFrom" : "link" ,
373+ } } )
374+
359375 this . clickedOnProfile = true ;
360376 const popUp = await this . popoverController . create ( {
361377 component : ProfileNameConfirmationPopoverComponent ,
@@ -368,20 +384,6 @@ export class ProjectTemplateviewPage implements OnInit {
368384 const { data } = await popUp . onDidDismiss ( ) ;
369385 if ( data !== undefined ) {
370386 if ( data . buttonClicked ) {
371- let params = {
372- isTargeted :this . isTargeted ,
373- programId : this . programId ,
374- solutionId :this . solutionId ,
375- isATargetedSolution :this . isATargetedSolution ,
376- type :this . isAssignedProject ? 'assignedToMe' : 'createdByMe'
377- }
378- this . router . navigate ( [ `${ RouterLinks . PROJECT } /${ RouterLinks . PROJECT_TEMPLATE } ` , this . solutionId ] , {
379- queryParams : params ,
380- skipLocationChange : false ,
381- replaceUrl : true ,
382- state : {
383- "referenceFrom" : "link" ,
384- } } )
385387 this . isStarted = true ;
386388 this . clickedOnProfile = false ;
387389 this . doAction ( ) ;
0 commit comments