src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/DocumentationRouter.js
function(oEvent) {
			var sEntityType,
				sEntityId,
				aSplit,
				sId = oEvent.getParameter("arguments").id;

			if (sId) {
				aSplit = sId.split("#");
				if (aSplit.length === 2) {
					sId = aSplit[0];
					sEntityType = aSplit[1];

					aSplit = sEntityType.split(":");
					if (aSplit.length === 2) {
						sEntityType = aSplit[0];
						sEntityId = aSplit[1];
					}
				}

				sId = sId.replace(/.html$/, "");

				if (sEntityType === 'event') { // legacy keyword is singular
					sEntityType = "events";
				}
			}

			this.navTo("apiId", {id: sId, entityType: sEntityType, entityId: sEntityId});
		}
function(oEvent) {
			var sEntityType,
				sEntityId,
				aSplit,
				sId = oEvent.getParameter("arguments").id;

			if (sId) {
				aSplit = sId.split("#");
				if (aSplit.length === 2) {
					sId = aSplit[0];
					sEntityType = aSplit[1];

					aSplit = sEntityType.split(":");
					if (aSplit.length === 2) {
						sEntityType = aSplit[0];
						sEntityId = aSplit[1];
					}
				}

				sId = sId.replace(/.html$/, "");

				if (sEntityType === 'event') { // legacy keyword is singular
					sEntityType = "events";
				}
			}

			this.navTo("apiId", {id: sId, entityType: sEntityType, entityId: sEntityId});
		}
function ( oEvent ) { var sEntityType , sEntityId , aSplit , sId = oEvent . getParameter ( "arguments" ) . id ; if ( sId ) { aSplit = sId . split ( "#" ) ; if ( aSplit . length === 2 ) { sId = aSplit [ 0 ] ; sEntityType = aSplit [ 1 ] ; aSplit = sEntityType . split ( ":" ) ; if ( aSplit . length === 2 ) { sEntityType = aSplit [ 0 ] ; sEntityId = aSplit [ 1 ] ; } } sId = sId . replace ( / .html$ / , "" ) ; if ( sEntityType === 'event' ) { // legacy keyword is singular sEntityType = "events" ; } } this . navTo ( "apiId" , { id : sId , entityType : sEntityType , entityId : sEntityId } ) ; }
Handling old Demo Kit API routes which should be navigated to new routes
@param {object} oEvent event object
@private
Handling old Demo Kit API routes which should be navigated to new routes