00827: $EnableRelativePageVars & Links does not apply to attached file

Summary: $EnableRelativePageVars & Links does not apply to attached file
Created: 2006-11-03 15:19
Status: Open
Category: Bug
From: mmyers
Assigned:
Priority: 5
Version: 2.2.0-beta15
OS: Linux/Apache/v5

Description: On the Main.HomePage page I have:

(:include InternalSpecs:)

On the Main.InternalSpecs page I have:

Attach:Spec.pdf

I upload the file and it goes to uploads/Main.InternalSpecs/Spec.pdf

However, when I go to the Main.HomePage, it shows the Spec.pdf as non-existent and wants me to upload Main.HomePage/Spec.pdf.

I thought this was what was supposed to be fixed with the new "relative links for included pages" enhancement in 2.2.0??

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f00827
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00827
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00827
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00827
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afLb_p9ZiWrfKoawz2hM_wAAAI8
            [REDIRECT_URL] => /wiki/PITS/00827
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 51934
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00827
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00827
            [SCRIPT_URL] => /wiki/PITS/00827
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afLb_p9ZiWrfKoawz2hM_wAAAI8
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777523710.7596
            [REQUEST_TIME] => 1777523710
            [argv] => Array
                (
                    [0] => n=PITS%2f00827
                )

            [argc] => 1
        )

)