Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Event Session Track URL

(0) ShareShare
ReportReport
Posted on by 90

Hello All,

We have a requirement that we will send our users URL similar to below URL with /event/session-tracks/ in the URL

https://xyz.microsoftcrmportals.com/event/session-tracks?id=Event_A

But when i click this URL it is redirecting to /events/sessions/

https://xyz.microsoftcrmportals.com/event/sessions?id=Event_A

Do we need to change in the route.ts ??

{
        path: "event",
        component: EventComponent,
        children: [
            {
                path: "",
                redirectTo: EventDetailSections.Sessions,
                pathMatch: "prefix"
            },
            {
                path: EventDetailSections.Sessions,
                component: SessionsComponent
            },
            {
                path: EventDetailSections.SessionTracks,
                component: SessiontracksComponent
            },
            {
                path: EventDetailSections.Speakers,
                component: SpeakersComponent
            },
            {
                path: EventDetailSections.PassInformation,
                component: PassesComponent
            }
        ]
    }

Kind Regards,

Abhilash.

  • Verified answer
    Abhilash_Reddy Profile Picture
    Abhilash_Reddy 90 on at
    RE: Event Session Track URL

    Changes in the Route.ts and event component changeRoute() function i achieved the desired result.

    Comment the Else part and add it in the if part at the end and also remove the default route withing child elements of the "/event".

    public chooseRoute () {

           if (!this.showSessions) {

               if (this.showSessionTracks) {

                   console.log("Event Component.ts showSessionTracks: " + this.showSessionTracks);

                   this.router.navigate(["event/session-tracks"], { queryParams: { id: this.readableEventId } });

               } else if (this.showSpeakers) {

                   console.log("Event Component.ts showSpeakers: " + this.showSpeakers);

                   this.router.navigate(["event/speakers"], { queryParams: { id: this.readableEventId } });

               } else if (this.showPasses) {

                   console.log("Event Component.ts showPasses: " + this.showPasses);

                   this.router.navigate(["event/pass-information"], { queryParams: { id: this.readableEventId } });

               }

           } else {

               console.log("Event Component.ts showsession: " + this.showPasses);

               this.router.navigate(["event/sessions"], { queryParams: { id: this.readableEventId} });

           }

    Kind Regards

    Abhilash.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans