Welcome Guest Search | Active Topics | Members | Log In | Register

Relative URL bug? Options
souther
Posted: Wednesday, February 21, 2007 5:07:58 PM
Rank: Newbie
Groups: Member

Joined: 2/21/2007
Posts: 1
Points: 3
Location: San Jose, Calif
I seem to have encountered a bug in the new version. It is not rendering relative URLs correctly. In my scan Sitemap Generator 4 reported this url:

http://www.dvdplay.com/content/view/12/27/movies/new-releases-page-2.html

Which doesn’t exist and results in a 404. However when running a 404 link checker (Xenu) on my site it finds no such problem. If you look at my site. Both of these urls are valid:

http://www.dvdplay.com/content/view/12/27/

/movies/new-releases-page-2.html (relative)

But somehow they are getting concatenated together inside of SG4.

Sponsor
Posted: Wednesday, February 21, 2007 5:07:58 PM
Get your Sitemap Generator license today! http://www.keylimetie.com/Checkout/Quick-PayPal/
KeyLimeTie
Posted: Wednesday, February 21, 2007 6:55:28 PM
Rank: Administration
Groups: Administration

Joined: 1/31/2007
Posts: 440
Points: 646
Location: Chicago, IL
souther,

I ran the software against your site and it appears to be working properly. I have seen this issue once before and it's very strange.

On the following pages (just a sampling):
http://www.dvdplay.com/movies/new-releases-page-1.html
http://www.dvdplay.com/movie-details/an-inconvenient-truth.html
http://www.dvdplay.com/content/view/17/39/

the software found the following HTML:
<a href="movies/new-releases-page-2.html">Test or Image</a>

According to URI Standards, these would merge at the highest folder level since the href doesn't start with a slash.
The puzzling part is that when I move my mouse over the links, they are correctly formed even though you wouldn't think they would be.
When referencing this URL on most pages, you prefix it with a slash. You will need to do that for the software to work.
This is probably a good idea as other browsers might have issues as well.

In case you're curious, here's some documentation regarding Uri's:
See the remarks section on the following webpage:
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/reference/functions/CoInternetCombineIUri.asp

“The following examples demonstrate the effect of combining a base and relative URI. Note how the first base example ends in a resource, whereas the second base ends in a path segment.”
BASE: http://www.adatum.com/abc/def
RELATIVE: xyz
COMBINED: http://www.adatum.com/abc/xyz

BASE: http://www.contoso.com/abc/def/
RELATIVE: ../../default.htm
COMBINED: http://www.contoso.com/default.htm

So in your example,
BASE: http://www.dvdplay.com/movies/
RELATIVE: movies/new-releases-page-2.html
COMBINED: http://www.dvdplay.com/movies/movies/new-releases-page-2.html

Thanks,
Brian
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

None
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.221 seconds.