@@ -6,21 +6,21 @@ function DocsController($location, $browser, $window) {
66 this . $location = $location ;
77
88 if ( ! HAS_HASH . test ( $location . href ) ) {
9- $location . hashPath = '!api/ ' ;
9+ $location . hashPath = '!/api ' ;
1010 }
1111
1212 this . $watch ( '$location.hashPath' , function ( hashPath ) {
1313 if ( hashPath . match ( / ^ ! / ) ) {
1414 var parts = hashPath . substring ( 1 ) . split ( '/' ) ;
15- self . sectionId = parts [ 0 ] ;
16- self . partialId = parts [ 1 ] || 'index' ;
15+ self . sectionId = parts [ 1 ] ;
16+ self . partialId = parts [ 2 ] || 'index' ;
1717 self . pages = angular . Array . filter ( NG_PAGES , { section :self . sectionId } ) ;
1818 self . partialTitle = ( angular . Array . filter ( self . pages , function ( doc ) { return doc . id == self . partialId ; } ) [ 0 ] || { } ) . name ;
1919 }
2020 } ) ;
2121
2222 this . getUrl = function ( page ) {
23- return '#!' + page . section + '/' + page . id ;
23+ return '#!/ ' + page . section + '/' + page . id ;
2424 } ;
2525
2626 this . getCurrentPartial = function ( ) {
@@ -48,7 +48,7 @@ function DocsController($location, $browser, $window) {
4848 this . afterPartialLoaded = function ( ) {
4949 SyntaxHighlighter . highlight ( ) ;
5050 $window . scrollTo ( 0 , 0 ) ;
51- $window . _gaq . push ( [ '_trackPageview' , $location . hashPath . replace ( '!' , '/' ) ] ) ;
51+ $window . _gaq . push ( [ '_trackPageview' , $location . hashPath . substr ( 1 ) ] ) ;
5252 } ;
5353
5454 this . getFeedbackUrl = function ( ) {
0 commit comments