Exclamation point on router trunk routes

In our project we have a bunch of routes, so the original route: routeAction is followed! route: routeAction is how it goes.

'home': 'homeAction',
'!home': 'homeAction',

      

Nobody on the team knows why we are doing this. Does anyone here know? Can't find anything in the documentation about this.

+3


source to share


1 answer


Adding this exclamation mark ( !

) has nothing to do with the stem, why you can't find anything in the doc about it. Backbone treats it like any normal URL.
But if the project is a little too old, I think this was used to let google crawl this ajax content in such a way that the route access using !

remains valid and calls the appropriate handler.



+4


source







All Articles