Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Backbone route to /

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?

like image 622
TTT Avatar asked Mar 22 '12 10:03

TTT


People also ask

What is a backbone route?

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.

What is backbone router in OSPF?

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).

Which protocol uses backbone router?

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).

Where are backbone routers located?

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.


1 Answers

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)

like image 98
tkone Avatar answered Sep 22 '22 06:09

tkone