# Set up Secure Pages

**URL:** <https://discourse.sst.dev/t/set-up-secure-pages/42>\
**Category:** Chapter Comments\
**Created:** [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/set-up-secure-pages/42 "2018-05-09T18:39:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anomalyinnovations](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/anomalyinnovations/32/10_2.png) [@anomalyinnovations](https://discourse.sst.dev/u/anomalyinnovations)\
**Post date:** [May 9, 2018, 6:39pm UTC](https://discourse.sst.dev/t/set-up-secure-pages/42/1 "2018-05-09T18:39:11Z")

</div>

_From @jayair on Mon Apr 10 2017 01:07:35 GMT+0000 (UTC)_  
  
Link to chapter - [http://serverless-stack.com/chapters/setup-secure-pages.html](http://serverless-stack.com/chapters/setup-secure-pages.html)  
  
_Copied from original issue: [https://github.com/AnomalyInnovations/serverless-stack-com/issues/57](https://github.com/AnomalyInnovations/serverless-stack-com/issues/57)_

---

<div class="post-metadata">

**Author:** ![Seeker](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Seeker](https://discourse.sst.dev/u/Seeker)\
**Post date:** [June 24, 2018, 6:22am UTC](https://discourse.sst.dev/t/set-up-secure-pages/42/2 "2018-06-24T06:22:07Z")

</div>

Hello,

I had followed this setup-secure-pages documentation . In this they are rerouting routes to login page but for me i am getting a different page like this

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/serverless_stack/original/1X/31379629135c1792eff3eedce8cfbaaeb07fc6d4.png)

I didnt find any errors in cosole log. And i followed the documentation correctly because except this i got all the functionality up and running.

Thanks

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [June 25, 2018, 10:23pm UTC](https://discourse.sst.dev/t/set-up-secure-pages/42/3 "2018-06-25T22:23:29Z")

</div>

Hmm I thing the redirect hasn’t been set up properly. It seems to be sending you to `/login/notes`. It should instead send you to `/login?redirect=notes`. You can see this here.

> <https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/components/AuthenticatedRoute.js#L11>
