Perlite icon indicating copy to clipboard operation
Perlite copied to clipboard

Direct page links

Open NotGovernor opened this issue 1 year ago • 6 comments

Is there a way to, instead of relative paths to internal links, we can do an absolute path from root?

EX: Instead of the following to navigate up and then back down the folder structure:

[[.../.../Folder/File]]

We could just do this and it would work from wherever this link existed in the site hierarchy:

[[/Folder/File]]

NotGovernor avatar Jun 01 '23 01:06 NotGovernor

I will take a look at this

secure-77 avatar Jul 27 '23 15:07 secure-77

I spend some hours into this topic and tried to support both cases, even if they are mixed in one environment. Unfortunately there is one edge case which I can't manage.

If you have a file (via relative file name) in one folder it will look like this

![[Pasted image 20240111010137.png]]

The problem is, files located in the root folder will look like the same so I can't decide if i need to link to the same folder or the root folder.

The only option I see is to implement a setting (variable) to switch between relative and absolute file links.

secure-77 avatar Jan 11 '24 00:01 secure-77

its implemented on the dev branch and will be included in the next release. There will be a new setting ABSOLUTE_PATHES

secure-77 avatar Jan 12 '24 16:01 secure-77

fixed / implemented in 1.5.8

secure-77 avatar Jan 14 '24 15:01 secure-77

there is a little bug in the 1.5.8, its already fixed in the dev version and will be in the next release

secure-77 avatar Feb 08 '24 10:02 secure-77

Thanks! Sorry for me not checking my notifications for so long. I see this has already been implimented, so awesome!

Had I not been tardy I would have responded as follows:

The problem is, files located in the root folder will look like the same so I can't decide if i need to link to the same folder or the root folder.

I would have it only look for such a file in the current local folder. If the user wants to reference something in the root they could just do a /image.png

Just my 2 cents. :) Thanks for your work on this.

NotGovernor avatar Apr 04 '24 21:04 NotGovernor