How can we create a dynamic Base URL. Sometimes we need to access the plugins/resources from different context path. So we want to make the base url dynamic from General Configuration under Administration.
Actually, we are not looking for two Base URL. But we have NCR Portal to access any NCR website (i.e.
http://jira.ncr.com
) from out side the NCR LAN. NCR Portal authenticates the user and provides session to enter the NCR website. NCR portal redirects the request with encripted URL to that website. Website understand that URL and land the user. But baseurl (which is configured in JIRA) is executed without encripted or without the session. So baseurl is not understand in out side the NCR LAN.
Due to above reason we want to setup the Base URL as request.getContextPath(). Please let me know any JSP, Java, properties file, where we can configure or set the baseurl variable to Context Path.