# Deployment environment issue

**URL:** <https://devforum.okta.com/t/deployment-environment-issue/15074>\
**Category:** Questions\
**Created:** [July 10, 2021, 9:30am UTC](https://devforum.okta.com/t/deployment-environment-issue/15074 "2021-07-10T09:30:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DABHOP](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@DABHOP](https://devforum.okta.com/u/DABHOP)\
**Post date:** [July 10, 2021, 9:30am UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/1 "2021-07-10T09:30:10Z")

</div>

Hi I am using “@okta/okta-angular”: “^2.0.0”, for my angular project built in angular 4.  
I have successfully integrated okta with angular and was able to get the okta logon working on my app using the redirection method.  
Now I want to deploy this on my QA environment.  
The url of the env is something like this ([https://abc.com/efg/hij](https://abc.com/efg/hij) .After deploying the following sequence occurs as expected.  
1.when i click on login button,the page redirects to okta login page.  
2.User is successfully authenticated and callback is called along with state and code query params appended.  
3.this url is trimmed uptill [https://abc.com/efg/hij/callback](https://abc.com/efg/hij/callback)  
4.The url gets further trimmed to [https://abc.com](https://abc.com) ,and that is where I face issue.As the complete url ([https://abc.com/efg/hij](https://abc.com/efg/hij)) is not hit.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [July 10, 2021, 4:55pm UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/2 "2021-07-10T16:55:30Z")

</div>

I bet steps 3 and 4 are happening inside of your application, so the question is more about what’s happening in angular in between those two steps. Sorry, not really an answer, just some sort of clarification. I’d ask in parallel to some angular community, if I were you

---

<div class="post-metadata">

**Author:** ![DABHOP](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@DABHOP](https://devforum.okta.com/u/DABHOP)\
**Post date:** [July 11, 2021, 6:51pm UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/3 "2021-07-11T18:51:25Z")

</div>

Thank you @phi1ipp for your quick help.I have also ran this sample angular-okta app  
[samples-js-angular/okta-hosted-login at master · okta/samples-js-angular · GitHub](https://github.com/okta/samples-js-angular/tree/master/okta-hosted-login) and saw this similar behavior.Just wanted help of how to get this resolved. I will also post on angular community

---

<div class="post-metadata">

**Author:** ![DABHOP](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@DABHOP](https://devforum.okta.com/u/DABHOP)\
**Post date:** [July 11, 2021, 7:39pm UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/4 "2021-07-11T19:39:52Z")

</div>

i have set my base.href pointing to the correct production path

---

<div class="post-metadata">

**Author:** ![DABHOP](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@DABHOP](https://devforum.okta.com/u/DABHOP)\
**Post date:** [July 12, 2021, 4:59pm UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/5 "2021-07-12T16:59:52Z")

</div>

I got it working.  
Incase others are facing this issue ,I followed the workaround given by albert.  
[Base href is ignored in the built-in implicit callback component · Issue #745 · okta/okta-oidc-js · GitHub](https://github.com/okta/okta-oidc-js/issues/745). 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [July 13, 2021, 5:00pm UTC](https://devforum.okta.com/t/deployment-environment-issue/15074/6 "2021-07-13T17:00:37Z")

</div>

Closed on July 13, 2021, 5:00pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
