Your comments

I see. Yeah, please only add the parent folder as an external folder.


Textastic doesn't know the relationship between external folders. 

If you use the "Add External Folder…" command, the system presents the Files app user interface in a secure way (using XPC). 


When the user selects a folder, Textastic gets a so-called "security scoped URL" from the system. Opening this URL extends the app's sandbox so it can now access that folder.

Textastic has very limited information about folders opened in this way. For example, it does not know that folder "ChartUse" and "ChartClass" share the same parent folder.

That's why relative URLs only work within the same location (Local Files, iCloud, or an external folder).

Please also have a look at this topic in the manual: https://www.textasticapp.com/v10/manual/managing_files/local_files_icloud.html

It tries to explain the Local Files and iCloud locations as well as external folders.

Click the "iCloud" location that is shown in this screenshot and create a file or folder in it using the "+" button. Then you should get a new folder called "Textastic" in the Files app that has Textastic's app icon on it.

I'll try to explain:

Each app can have a folder in iCloud Drive that it can access without the user needing to add it manually. 


This folder only appears in the Files app when there is at least a single file in it.

So, please go to "iCloud" in Textastic and add a file or folder.

Then, a folder called "Textastic" should appear in the Files app at iCloud Drive/Textastic with Textastic's app icon on it.

This is the recommended approach.

Alternatively, you can give Textastic access to any folder in iCloud Drive by using the "Add External Folder…" command. This also works for folders in "On my iPad" or with folders in the Git client "Working Copy" among other things.

So, if you have a folder in iCloud Drive called "Projects" which in turn contains "ChartClass" and "ChartUse", add the "Projects" folder as an external folder to Textastic and it should work.

What I just noticed: in my screenshot, the back button is labelled "iCloud" while in your screenshot, the back button is labelled "Textastic".

Have you maybe added two folders in iCloud Drive using "Add External Folder…" and are trying to reference from one external folder to the other?

This won't work. It needs to be the same external folder. So you need to add the parent folder that contains the two subfolders that contain your files.

I unzipped your two .zip files into Textastic's "iCloud" location.

Both "relative.html" and "relativeTest.html" work for me.

Here are screenshots from my iPad:

Image 602

Image 603Image 604

If you want, you can make a .zip file with the ChartClass and ChartUse folder in Textastic and send it to support@textasticapp.com so I can try to reproduce the issue here.

Does it recognize the "../ChartClass/style.css" file?

I just moved the folders from "Local Files" to the "iCloud" location on my iPad and it still works for me.

Not sure what's going on.

Can you please double-check the name of the "ChartClass" folder? Maybe there is a space somewhere (e.g. "ChartClass<space>") or something?