package fi.csc.microarray.client;

import fi.csc.microarray.client.operation.OperationDefinition;
import fi.csc.microarray.config.DirectoryLayout;

public class HelpMapping {

    public static final String MANUAL_ROOT = DirectoryLayout.getInstance().getConfiguration().getString("client", "manual-root");

	public static String mapToHelppage(OperationDefinition definition) {

		String page = definition.getID();
		if (page.contains(".")) {
			page = page.substring(0, page.lastIndexOf(".")) + ".html"; 
		}
		return MANUAL_ROOT + page;
	}
}

@@ -498,16 +498,47 @@
 html%22; %0A
+%09%09%7D else %7B%0A%09%09%09page += %22.html%22;%0A
 %09%09%7D%0A%09%09re

Fix help page link for tools without file extension