Commit efa7723d by Nilu

url shortner, not saving full url

parent 78a8df25
......@@ -504,7 +504,7 @@ public class Job extends BaseJob
private String getURL()
{
return LoopbackHTTP.getRemoteAccessURL("/ApplicantPortal-ApplyJob.htm?" + "id=" + getID() + "&key=" + getRandomKey());
return "/ApplicantPortal-ApplyJob.htm?" + "id=" + getID() + "&key=" + getRandomKey();
}
......
......@@ -6,6 +6,7 @@ import oneit.components.ParticipantInitialisationContext;
import oneit.logging.LogLevel;
import oneit.logging.LogMgr;
import oneit.logging.LoggingArea;
import oneit.net.LoopbackHTTP;
import oneit.objstore.ObjectTransaction;
import oneit.objstore.services.TransactionServicesFactory;
import oneit.servlets.utils.BaseHttpServletRequest;
......@@ -44,7 +45,7 @@ public class ShortenedURLDecorator implements ServletDecorator, InitialisationPa
{
request.setAttribute("DecoratorFilter.TERMINATE", "Yes");
response.sendRedirect(shortURL[0].getUrlLink());
response.sendRedirect(LoopbackHTTP.getRemoteAccessURL(shortURL[0].getUrlLink()));
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment