Properly handle DNS slave zones
This commit is contained in:
@ -320,6 +320,12 @@ import { settings, elements, apiGet, parseParams, setupHeader } from "/global.js
|
||||
{
|
||||
data.domain = response;
|
||||
|
||||
// Redirect if this is a slave zone
|
||||
if (data.domain.type == "slave") {
|
||||
location.href = "/dns/domain_slave?did=" + data.domain.id;
|
||||
return;
|
||||
}
|
||||
|
||||
// Set page title and header stuff
|
||||
document.title += " // " + data.domain.domain;
|
||||
ui.domainLabel.innerHTML = data.domain.domain;
|
||||
|
Reference in New Issue
Block a user