Bug 172643 Image in target report cannot display after drill through link.[04]
Description: Image in target report cannot display after drill through link. Build number:2.1.2.v20070202 Steps to reproduce: 1. New a folder inside project "scripting" 2. Copy attached report and image to scripting folder. 3. Preview the report and click the second image. Expected result: Open itself in a new window and display two images. Actual result: The first image cannot display. Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
}
		if ( renderContext instanceof PDFRenderContext )
		{
			baseURL = ( (PDFRenderContext) renderContext ).getBaseURL( );
		}
		if ( baseURL == null )
			return null;
		
		String bookmark = action.getBookmark( );
		
		
		if ( baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_FRAMESET ) > 0
				|| baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_RUN ) > 0 )
		{
			return "javascript:catchBookmark('" 
					+ ParameterAccessor.htmlEncode( bookmark ) + "')"; 
		}
		
		StringBuffer link = new StringBuffer( );
		boolean realBookmark = false;
		if ( this.document != null )
		{
			long pageNumber = this.document
					.getPageNumber( action.getBookmark( ) );
			realBookmark = ( pageNumber == this.page && !isEmbeddable );
		}
		try
		{
			bookmark = URLEncoder.encode( bookmark,
					ParameterAccessor.UTF_8_ENCODE );