OK I think I figured it out and I can see the code for replacing the
backslahes -- path.replace(/\\/g,'/');
But it is only doing it for when its assigning the URL parameter. I had to
add these two lines:
var relpath=relpath.replace(/\\/g,'/');
// added line
var path=path.replace(/\\/g,'/');
// added line
Hopefully I didn't break anything but it seems to be working correctly
now.
On Thursday, May 21, 2015 at 11:53:04 AM UTC-4, Eric Shulman wrote:
>
> On Thursday, May 21, 2015 at 5:29:53 AM UTC-7, Shango wrote:
>>
>> This is for Classic TiddlyWiki version 2.8.1 to be specific. I have a
>> bunch of tiddlers that link to pictures, media, etc. They were created
>> using the FileDrop Plugin. I mainly use a local TW for myself only. Then
>> I decided to export a few tiddlers into another TW and host it on a NAS for
>> people to connect to and view. I noticed that all the links on the NAS's
>> TW were broken. I discovered that the links were using the backslash "\"
>> so I changed them to regular slashes "/" and that cleared the problem and
>> the links now work. It seems like something is different about how the TW
>> is being served up on the NAS that it doesn't like the backslashes for
>> links. I'd like to change the behavior of the FileDrop Plugin so that it
>> generates the links with regular slashes as opposed to backslashes but it
>> seems to be hard coded into the javascript. I don't know enough about it
>> to change it myself. Can anyone help me with this? Thanks.
>>
>
> The code in that plugin already converts all "\" to "/", so I'm not sure
> why your attachements have "\" in them.
>
> Also. unless you are using a very old copy of FireFox, FileDropPlugin no
> longer works, because it requires
> netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
> which is no longer supported by the browser.
>
> Thus, there is nothing to fix, since the plugin will not work anyway.
>
> Sorry.
>
> enjoy,
> -e
> Eric Shulman
> ELS Design Studios
> TiddlyTools - "Small Tools for Big Ideas!"
> InsideTiddlyWiki: The Missing Manuals
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
> http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
> http://www.TiddlyTools.com/#Contact
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/aecc31bc-3485-430c-bb1f-a5231f3ffbec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.