Adobe-Marketing-Cloud / aem-guides-wknd-events

Step by Step guide to creating a Single Page Application to use with AEM
48 stars 34 forks source link

[Angular] Edit Template not redirecting correctly #59

Open DannyHa-ICFOlson opened 5 years ago

DannyHa-ICFOlson commented 5 years ago

When I try to Edit Template from http://localhost:4502/editor.html/content/wknd-events/angular/home.html it first tries to redirect to http://localhost:4502/editor.html/conf/wknd-events/settings/wcm/templates/wknd-events-page-template/structure.html but angular routing seems to redirect it to http://localhost:4502/editor.html/

How can I resolve this?

Console log error: angular-app.js:55528 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'conf/wknd-events/settings/wcm/templates/wknd-events-page-template/structure.html' Error: Cannot match any routes. URL Segment: 'conf/wknd-events/settings/wcm/templates/wknd-events-page-template/structure.html' at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (VM525 angular-app.js:69806) at CatchSubscriber.selector (VM525 angular-app.js:69787) at CatchSubscriber.push../node_modules/rxjs/_esm5/internal/operators/catchError.js.CatchSubscriber.error (VM525 angular-app.js:77649) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (VM525 angular-app.js:74388) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (VM525 angular-app.js:74368) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (VM525 angular-app.js:74388) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (VM525 angular-app.js:74368) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._error (VM525 angular-app.js:74388) at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.error (VM525 angular-app.js:74368) at TapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/tap.js.TapSubscriber._error (VM525 angular-app.js:82382) at resolvePromise (VM525 angular-app.js:3955) at resolvePromise (VM525 angular-app.js:3912) at VM525 angular-app.js:4014 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (VM525 angular-app.js:3562) at Object.onInvokeTask (VM525 angular-app.js:57078) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (VM525 angular-app.js:3561) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (VM525 angular-app.js:3329) at drainMicroTaskQueue (VM525 angular-app.js:3736)

godanny86 commented 5 years ago

Hi @DannyHa-ICFOlson we will look into this for the WKND events side. Do you mind taking a look at: https://github.com/adobe/aem-sample-we-retail-journal ? The Angular routing there should be working...

albin77 commented 5 years ago

I'm also facing the same issue. Do we have a solution for this. As I suspect due to this issue, I am not able to see components created in chapter 3. Its blank page since there is no components in the template. (http://localhost:4502/editor.html/content/wknd-events/angular/home.html).