How to set the 'goBackURL' parameter in a Angular 7 app?
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] Help needed
OS and Version?
Windows 10.
Versions
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / | | | | |/ _
| '__| | | | | | |
/ ___ | | | | (| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/
Angular CLI: 7.1.3 Node: 8.11.1 OS: win32 ia32 Angular: 7.1.3 … animations, cli, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, platform-server, router
Package Version
@angular-devkit/architect 0.11.3 @angular-devkit/build-angular 0.11.3 @angular-devkit/build-optimizer 0.11.3 @angular-devkit/build-webpack 0.11.3 @angular-devkit/core 7.1.3 @angular-devkit/schematics 7.1.3 @angular/cdk 7.1.1 @angular/fire 5.1.1 @angular/flex-layout 7.0.0-beta.19 @angular/material 7.1.1 @ngtools/webpack 7.1.3 @schematics/angular 7.1.3 @schematics/update 0.11.3 rxjs 6.3.3 typescript 3.1.6 webpack 4.23.1
Repro steps
<ngx-auth-firebaseui *ngIf="thisUser==null"
[guestEnabled]="false"
[goBackURL]="counter"
(onSuccess)="printUser($event)"
(onError)="printError($event)">
</ngx-auth-firebaseui>
<ngx-auth-firebaseui-user *ngIf="thisUser"></ngx-auth-firebaseui-user>
Desired functionality
I would like to see that after a login the user gets redirected to a certain page or route.
Mention any other details that might be useful
It doesn’t seem that goBackURL
has any affect at all on redirecting. Also, when signing out from inside the ngx-auth-firebaseui-user
component the console shows the following error:
GET https://localhost:44367/null 404 null:1
So I assume that somehow we need to specify a redirect URL for after signing out. I couldn’t find in the documentation anything related to this on how and where to define such.
Also, I was wondering if I can have provider login inside one of my windows / Component and not in an external window?
Last, where can I change the toast message greeting from ‘hallo’ to ‘hello’?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Thanks ever so much @AnthonyNahas for the update.
Happy to be of some kind of a help.
Hi @beeman
Thanks for your input.
I think that the documentation on goBackURL is misleading. From inspecting the code it seems to me that this option is the redirect property for AFTER Clicking the verify link inside the verify email. It has nothing to do with successful or unsuccessful authentication redirection, and most definitely after sign out.
The console error after sign out - seems to me - to have nothing to do with ngx-auth-firebaseui. It is the way it is implemented by Firebase themselves. See the following link. https://firebase.google.com/docs/reference/js/firebase.auth.Auth#signOut
ngx-auth-firebaseui calls this method basically.
I have tested it myself by adding a <nav> menu item and calling signOut() directly on the AngularFireAuth.auth object which is authProcessService.afa.auth and I get the same results.