cordero67 / openseatdirect-in-test

OpenSeatDirect Front End Production
0 stars 0 forks source link

undefined in path when pressing back from Salvi's event #71

Open mikem20 opened 2 years ago

mikem20 commented 2 years ago

Acting as a regular use, I go to Salvi's event and after pressing the back arrow in the browser, the URL goes to:

https://app.openseatdirect.com/et/undefined?eventID=undefined and the screen say "System Error Please Try again later"

This is Salvi's event: https://app.openseatdirect.com/et/made-you-laugh-comedy-show-89893005808?eventID=89893005808

I tried it a few times again, and cannot always repeat it. I speculate that pressing the back button unwinds a stack in the browser history of urls, to get to a certain true url but the react app then immediately redirects to a page with "undefined". So the top of some url page has some condition that redirects to https://app.openseatdirect.com/et/{X}?eventID={Y} but X and Y have been cleared. Therefore page should never redirect to a Url with variables.

Below I grep the code under src to show files and line numbers where conditions based on speculation exists.

Michaels-MBP-6:src michaelmazier$ grep -rn '/et/${' . ./TicketPurchases/CustomerInfoFree.js:377: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./TicketPurchases/CheckoutStripeBACK.js:122: window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutStripeBACK.js:596: if (!tempUser && !isGuest ) window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutPayPalExpress.js:79: window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutPayPalExpress.js:424: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./TicketPurchases/CustomerInfoPaid.js:206: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./TicketPurchases/CustomerInfoPaid.js:260: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./TicketPurchases/CustomerInfoPaid.js:445: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./TicketPurchases/CheckoutStripe.js:31: if (!tempUser && !isGuest ) window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutOpennode.js:25: if (!tempUser && !isGuest ) window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutPayPalMerchant.js:92: window.location.href = /et/${tempCart.eventDetails.vanityLink}?eventID=${tempCart.eventDetails.eventNum}; ./TicketPurchases/CheckoutPayPalMerchant.js:439: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; ./Events/EventDetails.js:118: window.location.href = /et/${eventDetails.eventUrl}?eventID=${eventDetails.eventNum}; ./TicketPurchase/TicketPurchase.js:897: window.location.href = /et/${eventDetails.vanityLink}?eventID=${eventDetails.eventNum}; Michaels-MBP-6:src michaelmazier$

Below is what I see in Console in Chrome Developer Tools:

TicketSelection.js:56 You are in Ticket Selection apiCore.js:5 Inside 'apiCore' 'handleErrors()' Response apiCore.js:6 Inside 'apiCore' 'handleErrors()' TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection TicketSelection.js:56 You are in Ticket Selection