"Go back to page" button edge case
I want to click a left -arrow icon and go to the previous page in the app . To do so I use j a v a s c r i p t :history .back ( ) , however it returns blank page sometimes (e .g . when the user goes directly to that link without previous history in the app ) . In that case I want to redirect to another base page in the app . how can I do so ? switch does not allow me to get a result from j a v a s c r i p t :history .back ( ) thanks