src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js
function(element) {
				var links = element.querySelectorAll("a.xref, a.link, area"),
					i,
					link,
					href,
					startsWithHash,
					startsWithHTTP;

				for (i = 0; i < links.length; i++) {
					link = links[i];
					href = link.getAttribute("href");
					startsWithHash = href.indexOf("#") == 0;
					startsWithHTTP = href.indexOf("http") == 0;

					// absolute links should open in a new window
					if (startsWithHTTP) {
						link.setAttribute('target', '_blank');
					}
					// absolute links and links starting with # are ok and should not be modified
					if (startsWithHTTP || startsWithHash) {
						continue;
					}

					// API reference are recognized by "/docs/api/" string
					if (href.indexOf("/docs/api/") > -1) {
						href = href.substr(0, href.lastIndexOf(".html"));
						href = href.substr(href.lastIndexOf('/') + 1);
						href = "#/api/" + href;
					} else if (href.indexOf("explored.html") > -1) { // explored app links have explored.html in them
						href = href.split("../").join("");
						href = oConfig.exploredURI + href;
					} else { // we assume all other links are links to other documentation pages
						href = href.substr(0, href.lastIndexOf(".html"));
						href = "#/topic/" + href;
					}

					link.setAttribute("href", href);
				}
			}
function(element) {
				var links = element.querySelectorAll("a.xref, a.link, area"),
					i,
					link,
					href,
					startsWithHash,
					startsWithHTTP;

				for (i = 0; i < links.length; i++) {
					link = links[i];
					href = link.getAttribute("href");
					startsWithHash = href.indexOf("#") == 0;
					startsWithHTTP = href.indexOf("http") == 0;

					// absolute links should open in a new window
					if (startsWithHTTP) {
						link.setAttribute('target', '_blank');
					}
					// absolute links and links starting with # are ok and should not be modified
					if (startsWithHTTP || startsWithHash) {
						continue;
					}

					// API reference are recognized by "/docs/api/" string
					if (href.indexOf("/docs/api/") > -1) {
						href = href.substr(0, href.lastIndexOf(".html"));
						href = href.substr(href.lastIndexOf('/') + 1);
						href = "#/api/" + href;
					} else if (href.indexOf("explored.html") > -1) { // explored app links have explored.html in them
						href = href.split("../").join("");
						href = oConfig.exploredURI + href;
					} else { // we assume all other links are links to other documentation pages
						href = href.substr(0, href.lastIndexOf(".html"));
						href = "#/topic/" + href;
					}

					link.setAttribute("href", href);
				}
			}
function ( element ) { var links = element . querySelectorAll ( "a.xref, a.link, area" ) , i , link , href , startsWithHash , startsWithHTTP ; for ( i = 0 ; i < links . length ; i ++ ) { link = links [ i ] ; href = link . getAttribute ( "href" ) ; startsWithHash = href . indexOf ( "#" ) == 0 ; startsWithHTTP = href . indexOf ( "http" ) == 0 ; // absolute links should open in a new window if ( startsWithHTTP ) { link . setAttribute ( 'target' , '_blank' ) ; } // absolute links and links starting with # are ok and should not be modified if ( startsWithHTTP || startsWithHash ) { continue ; } // API reference are recognized by "/docs/api/" string if ( href . indexOf ( "/docs/api/" ) > - 1 ) { href = href . substr ( 0 , href . lastIndexOf ( ".html" ) ) ; href = href . substr ( href . lastIndexOf ( '/' ) + 1 ) ; href = "#/api/" + href ; } else if ( href . indexOf ( "explored.html" ) > - 1 ) { // explored app links have explored.html in them href = href . split ( "../" ) . join ( "" ) ; href = oConfig . exploredURI + href ; } else { // we assume all other links are links to other documentation pages href = href . substr ( 0 , href . lastIndexOf ( ".html" ) ) ; href = "#/topic/" + href ; } link . setAttribute ( "href" , href ) ; } }
Adjusts link href values
@param element The DOM element which may contain cross reference links
Adjusts link href values