Magnus Henoch | 17 Nov 14:30
Picon

[bug #21601] Wrong handling of relative links with only query part


URL:
  <http://savannah.gnu.org/bugs/?21601>

                 Summary: Wrong handling of relative links with only query
part
                 Project: w3
            Submitted by: legoscia
            Submitted on: Saturday 11/17/2007 at 14:33
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

If the page http://foo/bar/baz.html contains a link ?foo, the link should
point to http://foo/bar/baz.html?foo, but W3 currently makes it
http://foo/bar?foo.

    _______________________________________________________

Reply to this item at:

(Continue reading)

Magnus Henoch | 18 Nov 13:04
Picon

[bug #21601] Wrong handling of relative links with only query part


Follow-up Comment #1, bug #21601 (project w3):

It seems that the bug resides in url-default-expander in Emacs' URL library:

*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> (defun test-url-expand ()
         (let ((relative (url-generic-parse-url "?foo"))
               (base (url-generic-parse-url "http://foo/bar/baz.html")))
           (url-default-expander relative base)
           relative))
test-url-expand
ELISP> (test-url-expand)
[cl-struct-url "http" nil nil "foo" 80 "/bar?foo" nil nil nil]

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21601>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/

Gmane