Viewing 6 replies - 1 through 6 (of 6 total)
  • Getting the same myself WP3.8. May look at trying to change the url via htaccess. Should be possible, rewriting the string to inlcude a trailing /.

    It effectively makes ALL attachments useless at the moment. I think this is a very useful feature so will take a look at the code… I may be some time.

    Try the following. In an editor go to line 1934 of the file: templates.php in the includes dir.

    Paste in:

    // BUGFIX: URL without / as attachment link.
          $attachment_url = str_replace("bp-attachments", "bp-attachments/", $attachment_url);

    It goes just before the IF statement… as follows:

    $attachment_filename = basename( $attachment_url );
    	// BUGFIX: URL without / as attachment link.
    	$attachment_url = str_replace("bp-attachments", "bp-attachments/", $attachment_url);
    
    	if ( 'full' === $format ) {
    		$attachment_delete_html = '';

    This will fix the link problem.

    While you’re there you may want to change the doc to open in another tab on the browser. Update line 1953 to:

    '<li id="doc-attachment-%d"><span class="doc-attachment-mime-icon doc-attachment-mime-%s"></span><a href="%s" title="%s" target="_blank">%s</a>%s</li>',

    It appears off the bat to fix it but I haven’t ran with the fix for any length of time as yet. Please let me know how you get on with it. If you need any help let me know here.

    Thread Starter Roquefort

    (@roquefort)

    The newest 1.6.0 update to BP-Docs fixed my problem! Just figured I’d post back here and let everyone know.

    Thanks Roquefort – great plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘URL is missing a slash with IIS’ is closed to new replies.