Commit 3191b05b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Mejora obtención de ruta actual

Con este nuevo método se permite el acceso a la app directamente incluso
en localhost usando puerto diferente al 80.
parent 2cb69c0c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -274,7 +274,9 @@ define([

		_onRouteChange: function() {

			var moduleUrl = location.href.split('\/' + getGlobalContext().location.hostname + '\/')[1],
			var locationObj = getGlobalContext().location,
				locationPath = locationObj.pathname,
				moduleUrl = locationPath.substr(1),
				urlSplitted = moduleUrl.split('?'),
				route = urlSplitted[0],
				query = urlSplitted[1],