Project

General

Profile

« Previous | Next » 

Revision 3727

add portnumber if not using 80

View differences:

lib/style/skins/default/settings.jsp
33 33
   // CONTEXT NAME of metacat installed:
34 34
	String      CONTEXT_NAME          = request.getContextPath();
35 35
	
36
	// URL of SERVER with context
37
	String     SERVER_URL_WITH_CONTEXT =  request.getScheme()+"://"+request.getServerName()+CONTEXT_NAME;
36
	// URL of SERVER with context (and optional port)
37
	String     SERVER_URL_WITH_CONTEXT =  request.getScheme() + "://" + request.getServerName();
38
	if ( request.getLocalPort() != 80 ) {
39
		SERVER_URL_WITH_CONTEXT += ":" + request.getLocalPort();
40
	}
41
	SERVER_URL_WITH_CONTEXT += CONTEXT_NAME;
38 42

  
39 43
	// URL of metacat to be used for login & searching:
40 44
	String      METACAT_URL           =  SERVER_URL_WITH_CONTEXT+ "/metacat";

Also available in: Unified diff