Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Can Route 2.0X hides #! from route, but I want to see it

$
0
0
Howdy,
We have an existing Can 1.X app we converted to Can 2.0X. When we did, the routing worked but we lost the base part of the html including the #!. So before our app was at "raft-prod.mit.edu/app.html#!routename." Now in Can 2.0 we are at raft-prod.mit.edu/routename. Because of particular issue with how we built the underlying middle tier, we need the #! back.
Also, we noticed that can.route.ready(true) is undocumented. We can see from the code that adding true tells the ready function NOT to call
can.route._setup(); and can.route.setState();, but as I said, this is not documented.

So two questions:
1. How do I get the #! back?
2. is true a stable attribute for can.route.ready and if so, will it be documented?

Viewing all articles
Browse latest Browse all 3491

Trending Articles