web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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.

I have the same question (0)
  • Verified answer
    Abhilash_Reddy Profile Picture
    90 on at

    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 94

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans