We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e23ddd commit df8f049Copy full SHA for df8f049
javascripts/index.js
@@ -25,9 +25,15 @@ function loadPage() {
25
$("#contentContainer").prepend(ABSOLUTE_LOADER);
26
if (pageType != TAB_PAGE_TYPE) { //Tabbed pages need to be handled differently
27
$.get('/views/' + pageType + '.html?' + VERSION, function(response, data) {
28
- $('#contentContainer').html(response);
29
- if ($('#contentContainer .injectionDescription')) {
30
- loadInjectionDescriptions();
+ if (response.indexOf('<head>') > -1 && response.indexOf('<title>SQL') > -1) {
+ //Whatever view it is, we don't have it and it defaulted to index.html
+ debugger;
31
+ window.location.pathname = '/';
32
+ } else {
33
+ $('#contentContainer').html(response);
34
+ if ($('#contentContainer .injectionDescription')) {
35
+ loadInjectionDescriptions();
36
+ }
37
}
38
})
39
} else {
0 commit comments