History across views?

Hey all! I’m trying to return to the base view only if the user hasn’t changed tabs and then clicked on the tab. I can see if they are deep within a single view (history.length), but want to confirm against the last tab they were on. How can I compare the previous and current view?



Rethought my approach and solved it another way with the following:

	checkHistory() {
		if (this.$f7.views.current.history == this.historyTrack) {
			const currentPageName = this.$f7.views.current.name;
			this.historyTrack = this.$f7.views.current.history;

1 Like