[kwlug-disc] Drupal bug?

Khalid Baheyeldin kb at 2bits.com
Mon Jul 13 10:40:27 EDT 2009


On Mon, Jul 13, 2009 at 9:42 AM, <john at netdirect.ca> wrote:

> Hi All,
>
> I've finally found the conditions that cause a problem in Drupal, but it's
> so odd that I don't know how to search for an answer.
>

Congratulation on the conversion to Drupal!


> Basically under some circumstances a URL path element is repeated. This
> can be see in these two URLs:
>
> http://www.netdirect.ca/software/packages/barry
> http://www.netdirect.ca/software/packages/barry/
>
> The URL with the trailing slash will have links on the page (look down to
> Getting Started) with duplicate /barry/ elements. e.g.
> http://www.netdirect.ca/software/packages/barry/barry/install.php
>

Looking at the HTML source, I see this:

<li><a href="barry/install.php">Install Barry from binary packages</a></li>
<li><a href="barry/cvs.php">Compile Barry from tarball, CVS, or git</a></li>

If you change that to

<li><a href="/barry/install.php">Install Barry from binary packages</a></li>
<li><a href="/barry/cvs.php">Compile Barry from tarball, CVS, or git</a></li>


Making it an absolute URL, the issue goes away.

Also, this module helps by eliminating all trailing slashes.

http://drupal.org/project/globalredirect

>
> Any ideas on the problem?
>
> John Van Ostrand
> Net Direct Inc.
>
> CTO, co-CEO
> 564 Weber St. N. Unit 12
> map
>
> Waterloo, ON N2L 5C6
>
> john at netdirect.ca
> Ph: 866-883-1172
> ext.5102
> Linux Solutions / IBM Hardware
> Fx: 519-883-8533
>
>
>
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
>



-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20090713/45ce1733/attachment.htm>


More information about the kwlug-disc mailing list