Add redirect for customer direct link#30
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Requested in discord https://discord.com/channels/1341900046278328383/1507044291548283051/1507044291548283051
This customer's QR code originally linked to https://www.8thwall.com/twainxreducation/brandigno since they didn't have direct URL access. Now that 8thwall.com has been commissioned, it's redirecting to https://8thwall.org/?site_path=twainxreducation%2Fbrandigno
The original page would have had a button to open https://twainxreducation.8thwall.app/brandigno/ but we can redirect directly for now.
To catch the case of these paths in general, it might make sense to add redirect logic if there is a site_path found, and if the link structure matches this format, show a link to the experience URL.
Testing
https://localhost:3000/?site_path=twainxreducation%2Fbrandigno redirects to the project URL