Comments (4)
I've got a similar problem although with a slight difference:
- Log in
- go to /app/home
- Reload the page
- App redirects user to / route then redirec to /app/home
I followed this documentation: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa
Were you able to handle this issue @CaptainChemist ?
from gatsby-auth-starter-aws-amplify.
@devnantes44 No, I wasn't able to solve it unfortunately.
from gatsby-auth-starter-aws-amplify.
@devnantes44 @CaptainChemist have you both had a chance to go through the above link and if so, is the issue still happening?
from gatsby-auth-starter-aws-amplify.
@mtliendo I just tried having the following be my only redirect and I can confirm that this did not fix my problem and in fact made it worse. So that documentation provided did not work in my case unfortunately.
source address: </^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>
target address: /index.html
type: 200
Previously, I could directly navigate to pages that was not a protected route and I would not be navigated to the home page, it was only protected pages that would get navigated back to the home page regardless of whether the person was logged in or not. I think for me personally, even though the expected behavior should be that I can see pages that I should be able to see even if I refresh the page without a redirect to the home page, as long as my public pages act like they should, I can work around that.
source address: /<*>
target address: /index.html
type: 404 (Redirect)
from gatsby-auth-starter-aws-amplify.
Related Issues (20)
- Amplify status without data
- Amplify Console build error HOT 3
- Can't Build Project HOT 1
- gatsby dependencies fail to install when using "next" in package.json HOT 2
- Browser refresh causes auth errors HOT 1
- Why are we not using `withAuthenticator` with gatsby? HOT 5
- Security vulnerability: sensitive user fields in local storage HOT 3
- Fail to start... HOT 7
- NPM package error: Error: Cannot create as TypeComposer the following value: Date. HOT 2
- SSR part of gatsby build fails due to AWS Amplify client libraries not being "Node safe" HOT 1
- Permission Error HOT 1
- GATSBY STARTER IS NOT STARTING UP HOT 1
- NOT ABLE TO SIGN UP HOT 5
- Lambda functions need to be updated to nodejs12.x runtime
- Error signing up in demo site HOT 1
- gatsby site will not start due to major error HOT 13
- Change cognito userpool?
- Update gatsby-node.js and / or gatsby-ssr.js for server-side rendering
- AWS Amplify configure step requests should not request full Admin policy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-auth-starter-aws-amplify.