Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Files and Folder names with spaces - linking issues

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


kushalkoolwal at hotmail

Oct 26, 2009, 4:14 PM

Post #1 of 2 (164 views)
Permalink
Files and Folder names with spaces - linking issues

I am running mediawiki on Linux a box.

Here is what I have noticed:

[file://G:\TEMP\linktest\test.pdf]
works fine

But when there are spaces in the folder/file name (for example:G:\TEMP\link test\test.pdf):
[file://G:\TEMP\link%20test\test.pdf]
does not work

However if you add an extra "/" in the file:// keyword like this:
[file:///G:\TEMP\link%20test\test.pdf]
works fine.

Is this something normal? Is there any setting (in Mediawiki) by which adding the extra "/" can be taken care off. It is easy for technical users but non-technical users can get frustrated if they have to remember these details.

Kushal Koolwal

I do blog at http://9to5.koolwal.net/

_________________________________________________________________
Windows 7: It helps you do more. Explore Windows 7.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


brion at pobox

Nov 6, 2009, 2:44 AM

Post #2 of 2 (90 views)
Permalink
Re: Files and Folder names with spaces - linking issues [In reply to]

On 10/27/09 12:14 AM, Kushal Koolwal wrote:
>
> I am running mediawiki on Linux a box.
>
> Here is what I have noticed:
>
> [file://G:\TEMP\linktest\test.pdf]
> works fine
>
> But when there are spaces in the folder/file name (for example:G:\TEMP\link test\test.pdf):
> [file://G:\TEMP\link%20test\test.pdf]
> does not work
>
> However if you add an extra "/" in the file:// keyword like this:
> [file:///G:\TEMP\link%20test\test.pdf]
> works fine.
>
> Is this something normal?

Looks normal. After the double-slash the next element is a hostname --
when accessing local paths (such as drive letters on Windows) you need
another slash to imply localhost.

Keep in mind that file: URLs are wildly inconsistent across browsers and
operating systems, so their behavior may not be very consistent for edge
cases where you're not technically doing it right.

-- brion


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.