Questions tagged redirect

Explore the latest questions and answers asked by our top developers.

Angular routing redirectTo displays wrong component

I know there are already several answers to this question but none of them helped me. My issue is that the router redirect doesn’t redirect to the correct page and I can’t find out why. My setup is: app-routing.module.ts export const routes: Routes = [ { path: ”, redirectTo: ‘start’, pathMatch: ‘full’ }, { path: […]

By BreadcrumbPie
Categorized as angular, redirect, routes Tagged , ,

From Angular to Angular – enable cross origin request

I am wondering, is it possible to allow cross origin request on a Angular Application ? I explain myself : 1st Angular application requests a server that return a 302 with location URL 302 is catch by browser, that redirect us on the URL let’s say that the URL points to an 2nd Angular application, […]

By Ugo Evola
Categorized as angular, cors, redirect Tagged , ,

Angular – handle a 302 redirection

I have seen several topics on the problem, but none of them with a clean and well constructed solution… So I’m re-launching the topic! I am on Angular v.12.1.1 I would like to hundle a 302 response cleanly. But the browser catches it before, and makes a GET request towards the location… I found a […]

how to handle authentication redirect with angular pwa service worker

I have an Angular 9 app that I just turned into a PWA using the @angular/pwa package in order to improve performance. When opening the application, it’s supposed to redirect to our company’s authentication page. However, after enabling service workers i am getting an error from my API because the user is not authenticated. From […]

How to modify my angular app URL and include a sub path?

I’m using angular 10, so far, the URL of my app is : but now, I need to have it : because I’m workin on a reverse proxy and will need to create a new app having the same domain the difference will be after the domain (firstApp, and secondApp) How can […]

By Sushi
Categorized as angular, redirect, routes Tagged , ,

Angular <router-outet> is displaying the parent twice

I have a parent component (RemoteMpnitoringOverviewComponent) and a child (FilterIncidentsComponent) that is a modal, but I don’t know why the parent component is displayed twice. I have tried the solution from Angular &lt;router-outlet&gt; displays template twice, but without any result. const routes: Routes = [ { path: ”, canActivate: [MsalGuard], canActivateChild: [MsalGuard], component: RemoteMonitoringOverviewComponent, children: […]

By simpller
Categorized as angular, redirect, routes, typescript Tagged , , ,

Redirect to react application from angular js

Web app is developed using Angular js(1.5.X). we have started migrating to react and developed dashboard for users with role Admin. So how can I redirect the admin users who successfully login from angular js app to react app. Source: AngularJS Questions

Is there a way to know when an msal redirect is in progress?

Im using the @azure/msal-browser and @azure/msal-angular packages in order to simply retrieve an MSAL token for my signed in users. Since all I really need is the token I have only provided the MsalService and MSAL_INSTANCE in my app.module.ts. I am using the redirect flow and have chosen to subscribe to the .handleRedirectObservable() method myself […]

By skyleguy
Categorized as angular, azure, msal, msal-angular, redirect Tagged , , , ,

How to prevent messaging app link previews when using a URL redirect

My web app has functionality that redirects the user to an external link. When this link is sent over SMS, several applications (iMessage, Google Messages, etc.) create a link preview that displays the page the user is redirected to. This redirection is extremely undesirable given the application’s functionality. I would love to prevent link previews […]

Angular service worker caching a 302 response to a POST request containing SAML2 object

Based on my understanding the Angular service worker does not/ cannot cache POST requests. However, I am facing a weird problem. My application offers SSO where we are integrating with a client’s ADFS system and parsing a SAML2 XML response. The flow is Employee goes to company’s adfs website, logs in and selects our app […]

1 5

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us