Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Client Side Routing When Hosting Vaadin Lit project on AWS S3 #880

Open
arulselvan opened this issue Jan 3, 2024 · 0 comments
Open

Comments

@arulselvan
Copy link

arulselvan commented Jan 3, 2024

I've deployed the Vaadin app in AWS S3, My current objective is to ensure that when I refresh the page, the child route refreshes without redirecting back to the home page.

To handle this in AWS S3, I've implemented conditional redirects for 404 errors. The configuration is as follows:

[ { "Condition": { "HttpErrorCodeReturnedEquals": "404", "KeyPrefixEquals": "ld" }, "Redirect": { "HostName": "[dev.mydomain.in](http://dev.mydomain.in/)", "Protocol": "https", "ReplaceKeyPrefixWith": "ld#!/" } } ]

This setup effectively redirects any 404 errors with the specified key prefix to the designated hostname and protocol, replacing the key prefix with "ld#!/"

Now, my question is: does Vaadin support hash-based routing to further enhance this setup?

Thank you in advance for any insights or suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant