Sorry... Hit send too soon. Try having your Oauth redirect Uri include the "#/".
On Thu, Jul 28, 2016, 11:28 Lucas Lacroix <lchar...@meditech.com> wrote: > It looks like this might be a consequence of using the hash location > strategy. > > On Thu, Jul 28, 2016, 11:16 'Charles Jackson' via AngularJS < > angular@googlegroups.com> wrote: > >> Hi, >> >> I'm struggling with the new component router. I'm using the oAuth API on >> twitter which redirects back to my local domain as follows: >> >> http://localhost?oauth_token=123 >> >> However, the URL is replaced on page load with >> >> http://localhost/#/ >> >> ... and I cannot retrieve the query string parameter. If I remove all >> routes the query string will stick to the URL but the moment I add a route >> it is removed. Below is a copy of my route file with a single route. If I >> remove the route I will get a blank page but at least the query string is >> in the URL >> >> import { provideRouter, RouterConfig } from '@angular/router'; >> >> >> export const routes: RouterConfig = [ >> { path: '', component: HomeComponent }, >> ]; >> >> export const appRouterProviders = [ >> provideRouter(routes) >> ]; >> >> Can anybody please advise a novice? >> >> Many thanks >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to angular+unsubscr...@googlegroups.com. >> To post to this group, send email to angular@googlegroups.com. >> Visit this group at https://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.