Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/org/labkey/test/tests/core/admin/ShortUrlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private void doSetup()
public void testShortUrl() throws Exception
{
String shortUrl = nextUrlKey();
String targetUrl = buildRelativeUrl("project", getProjectName(), "begin");
String targetUrl = WebTestHelper.getContextPath() + buildRelativeUrl("project", getProjectName(), "begin");

ShortUrlAdminPage adminPage = ShortUrlAdminPage.beginAt(this);
adminPage.createNewShortUrl(shortUrl, targetUrl);
Expand All @@ -95,7 +95,7 @@ public void testShortUrl() throws Exception
});

log("Update shortUrl target");
String updatedTargetUrl = buildRelativeUrl("project", "home", "begin");
String updatedTargetUrl = WebTestHelper.getContextPath() + buildRelativeUrl("project", "home", "begin");

adminPage = ShortUrlAdminPage.beginAt(this);
adminPage.createNewShortUrl(shortUrl, updatedTargetUrl);
Expand Down Expand Up @@ -149,7 +149,7 @@ public void testTrickyCharacters() throws Exception
assertEquals("Row count with filter", 1, drt.getDataRowCount());

String shortUrl = nextUrlKey();
String targetUrl = getCurrentRelativeURL();
String targetUrl = WebTestHelper.getContextPath() + getCurrentRelativeURL();

ShortUrlAdminPage adminPage = ShortUrlAdminPage.beginAt(this);
adminPage.createNewShortUrl(shortUrl, targetUrl);
Expand Down