Bug 147995 Master page lost when drill through to a report document
Description: Master page lost when drill through to a report document Steps to reproduce: 1. New a report rpt1 with master page 2. Generate the report document for rpt1 3. New another report rpt2, drill through to the report document 4. Preview rpt2, link to the report document, master page is missing
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
}
	/**
	 * builds URL for drillthrough action
	 * 
	 * @param action
	 *            instance of the IAction instance
	 * @param context
	 *            the context for building the action string
	 * @return a URL
	 */
	protected String buildDrillAction( IAction action, Object context )
	{
		String baseURL = null;
		if ( context != null && context instanceof HTMLRenderContext )
		{
			baseURL = ( (HTMLRenderContext) context ).getBaseURL( );
		}
		StringBuffer link = new StringBuffer( );
		String reportName = action.getReportName( );
		if ( reportName != null && !reportName.equals( "" ) ) 
		{
			String format = action.getFormat( );
			if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) )
			{
				link.append( baseURL.replaceFirst( "frameset", "run" ) ); 
			}
			else
			{
				link.append( baseURL );
			}