View Issue Details

IDProjectCategoryView StatusLast Update
0000150WackoWikicorepublic2015-04-07 18:29
Reporteradministrator 
Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
Status confirmedResolutionopen 
Product Version4.2 
Target Version5.6.xFixed in Version 
Summary0000150: Internal relative paths ../../../
Descriptionenable internal relative paths also for more then one level

like ../../DocEnglish

Steps To Reproduceexample:
you are here
/root/levelOne/levelTwo/levelThree/levelFour

and you want use internal linking

../../../levelOne

to /root/levelOne
Additional Informationhttp://test.wackowiki.org/Bugs/150

see also uwrap_link() function in wacko class
TagsNo tags attached.

Relationships

Activities

administrator

2008-05-20 03:24

administrator   ~0000340

Last edited: 2015-04-07 18:24

View 2 revisions

function get_page_path($separator = '/')
    {
        $steps = explode('/', $this->tag);
        $links = array();
        $result = '';

        for ($i = 0; $i < count($steps) - 1; $i++)
        {
            if ($i == 0) $prev = '';
            else $prev = $links[$i - 1].'/';
            $links[] = $prev.$steps[$i];
        }

        for ($i = 0; $i < count($steps) - 1; $i++)
        {
             $result .= $this->Link( $links[$i], '', $steps[$i] ).'/';
        }
        
        $result .= $steps[count($steps) - 1];
        
        return $result;
    }

Tann San

2008-09-21 15:45

manager   ~0000512

I'm a bit wary about this one. It has the potential to break alot of links. Say you have a branch of pages the directly descend from the root page. All the pages in the branch use relative linking to each other. Now you move the top most page of that branch or a sub branch. All the links will then be wrong. Is this the reason it was not implemented in the first place? That would be my hunch.

administrator

2008-09-21 16:29

administrator   ~0000516

Владислав already fixed this issue in his fork
https://www.pgpru.com/razrabotki/dvizhok/files?get=openspace-0.8.24a.tar.bz2
and I aked him if he could help us out and he requested more info...

Issue History

Date Modified Username Field Change
2008-01-13 17:04 administrator New Issue
2008-01-13 17:04 administrator Legacy => NEW
2008-05-20 03:24 administrator Note Added: 0000340
2008-05-20 03:56 administrator Note Edited: 0000340
2008-05-20 04:21 administrator Note Edited: 0000340
2008-07-19 22:14 administrator Status new => confirmed
2008-07-29 11:01 administrator Summary Internal relative linking ../../../ => Internal relative paths ../../../
2008-07-29 11:01 administrator Description Updated
2008-09-04 17:02 administrator Additional Information Updated
2008-09-21 15:43 Tann San Target Version => 5.4.0
2008-09-21 15:45 Tann San Note Added: 0000512
2008-09-21 16:29 administrator Note Added: 0000516
2010-03-08 10:12 administrator Category Core => core
2014-03-21 15:00 administrator Target Version 5.4.0 => 5.5.x
2015-02-19 19:24 administrator Target Version 5.5.x => 5.6.x
2015-04-07 17:20 administrator Additional Information Updated View Revisions
2015-04-07 18:24 administrator Note Edited: 0000340 View Revisions
2015-04-07 18:29 administrator Additional Information Updated View Revisions