jquery/demos.jquerymobile.com

Demo links are broken in legacy versions

gseguin opened this issue · 2 comments

Reported by @jdsharp in jquery/jquerymobile.com#34
Each widget link is broken. Radio buttons for example link to 'http://demos/widgets/radiobuttons' instead of ./widgets/radiobuttons http://cl.ly/image/2p1V12080x2E

There was an issue opened by @joeychong in jquerymobile.com jquery/jquerymobile.com#35 which I believe is a duplicate of this issue. The problem exists also in 1.4.0

@aulvi alerted me to this one, so I dug a bit:

Here is the bug:

var base = $( "base" ).attr( "href" ).split('demos')[0],

What is happening now that the domain is demos.jquerymobile.com - this is effectively doing var base = 'http://' and rewriting all the links to be there...

Of course this is probably a bug across all of the versions affected, not just 1.3.2.