When Backbone Routers is used for rendering subviews into a main view there is an issue I cannot overcome. Same issue when inner view rendering from inside the home view preferred. This is faced when the page is refreshed. I can describe them in detail as follows.
I have a homeview, whole page. A mainrouter directed me to that homeview at the beginning. Homeview has tabs. Clicking tabs should show a subview by a method in homeview navigating by mainrouter. Subviews are whole width under tab bar. After navigated, url has been updated. Now subview is shown in the place I wrote. If at this stage one refreshes the page,this same stage is not reached. Because of the url, directly the router will route to the method to render the subview but where to put it in dom. Homeview is not there with its element.
This also should be solved in case when not routers but inner views are used to render the subviews from click events inside the homeview, I mean without routes in the main router to create and call render of the subviews in the main router. Because tab clicks updates the url. And When one refreshes the page at this point app knows no where to go. In my case it sometimes refreshes with no problem and in some cases do not render anything.
Not updating the url in tab clicks can be a solution, but of course click should visit the hashtag it references. Updating the url is not necessary at all since this is even in desktop browser a single page application. So no place to be bookmark-able, back button-able, as Backbone documentation describes for Backbone.Router.
What are the ways to overcome this issue?