File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,15 @@ function loadPage() {
25
25
$ ( "#contentContainer" ) . prepend ( ABSOLUTE_LOADER ) ;
26
26
if ( pageType != TAB_PAGE_TYPE ) { //Tabbed pages need to be handled differently
27
27
$ . get ( '/views/' + pageType + '.html?' + VERSION , function ( response , data ) {
28
- $ ( '#contentContainer' ) . html ( response ) ;
29
- if ( $ ( '#contentContainer .injectionDescription' ) ) {
30
- loadInjectionDescriptions ( ) ;
28
+ if ( response . indexOf ( '<head>' ) > - 1 && response . indexOf ( '<title>SQL' ) > - 1 ) {
29
+ //Whatever view it is, we don't have it and it defaulted to index.html
30
+ debugger ;
31
+ window . location . pathname = '/' ;
32
+ } else {
33
+ $ ( '#contentContainer' ) . html ( response ) ;
34
+ if ( $ ( '#contentContainer .injectionDescription' ) ) {
35
+ loadInjectionDescriptions ( ) ;
36
+ }
31
37
}
32
38
} )
33
39
} else {
You can’t perform that action at this time.
0 commit comments