I want to click a left-arrow icon and go to the previous page in the app. To do so I use javascript: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 javascript:history.back()
thanks