location = modifyURIPort(location, getSchemePort());
if (getPort(external) == getSchemePort()) { location = modifyURIPort(location, -1); location = modifyURIPort(location, getSchemePort());
location = modifyURIPort(location, getSchemePort());
if (getPort(external) == getSchemePort()) { location = modifyURIPort(location, -1); location = modifyURIPort(location, getSchemePort());