From adae1958a95d7e801de91d673e927cac348236d9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 10 Mar 2011 22:05:49 +0000 Subject: Fixes #2228: Major cleanup of urls -- remove leading pg/ and trailing / from most urls in core and plugins git-svn-id: http://code.elgg.org/elgg/trunk@8653 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/tests/ElggLibTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/tests') diff --git a/js/tests/ElggLibTest.js b/js/tests/ElggLibTest.js index dda1ecd40..dd0267c5c 100644 --- a/js/tests/ElggLibTest.js +++ b/js/tests/ElggLibTest.js @@ -73,10 +73,10 @@ ElggLibTest.prototype.testNormalizeUrl = function() { [ ['', elgg.config.wwwroot], - ['pg/test', elgg.config.wwwroot + 'pg/test'], + ['test', elgg.config.wwwroot + 'test'], ['http://google.com', 'http://google.com'], ['//example.com', '//example.com'], - ['/pg/page', elgg.config.wwwroot + 'pg/page'], + ['/page', elgg.config.wwwroot + 'page'], ['mod/plugin/index.php', elgg.config.wwwroot + 'mod/plugin/index.php'], ].forEach(function(args) { assertEquals(args[1], elgg.normalize_url(args[0])); -- cgit v1.2.3