I have a Backbone Router:
class X.Routers.Main extends Backbone.Router
routes:
'/': 'home'
'pageb': 'actionb'
'pagec': 'actionc'
Pages B and C work, but navigating to http://domain.ext/ results in a page reload instead of triggering the right route.
How can I prevent this?
A backbone router is a router designed to be used to construct backbone networks using leased lines. Backbone routers typically do not have any built-in digital dial-up wide-area network interfaces.
Backbone Router Backbone routers are routing devices that have one or more interfaces connected to the OSPF backbone area (area ID 0.0. 0.0).
Backbone routers are then used to connect the various autonomous systems into a single internetwork. Backbone routers also exchange information using Exterior Gateway Protocols (EGPs), such as the Border Gateway Protocol (BGP).
Backbone Router This router is located within the backbone area. It is responsible for routing traffic across the backbone, but it does not connect to any other areas.
You can either set "*path": "home"
as your last route which will make it a default route or set ""
(instead of "/"
)as your first route (which means root directory)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With