mothra_changes_stored_url_on_window_redraw

Sat, 19 Sep 2015 13:03:54 EDT
tereniaopensim@[REDACTED]

i’m browsing tvtropes in mothra. for most pages, tcs reports a “bad utf sequence”. i want to clear the message off so i right-click the border. that works, but it also changes the url, dropping the last part.

for instance, i load this page: http://tvtropes.org/pmwiki/pmwiki.php/Main/UnusualEars then i right-click the border, and the url displayed becomes this: http://tvtropes.org/pmwiki/pmwiki.php/

the page doesn’t reload, just the displayed url changes. it becomes a problem if i click the file list before i snarf; the snarfed url is then the abbreviated one. (i often do this to get the page’s url after snarfing some link within it.)


discussion:

Jun 6, 2014 Project Member #1 stanley.lieber

i can’t reproduce this.

Jun 6, 2014 Project Member #2 stanley.lieber

correction: i CAN reproduce this when visiting the url above.

Jun 6, 2014 Project Member #3 stanley.lieber

loading http://tvtropes.org/pmwiki/pmwiki.php/Main/UnusualEars and clicking mouse button 1 on the URL history causes the selected URL to change to http://tvtropes.org/pmwiki/pmwiki.php/. this is printed at the top as “selected: http://tvtropes.org/pmwiki/pmwiki.php/”, but in this case the Url: line is not changed.

Jun 6, 2014 Project Member #4 stanley.lieber

this does not seem to be related to URL length. the URL http://notreally.info/transport/planes/blackbird/a-12/60-6924/ contains more characters but does not produce the same behavior.

Jun 6, 2014 Project Member #5 stanley.lieber

the valid URL http://9front.org/pmwiki/pmwiki.php/Main/UnusualEars/ likewise does not produce the same behavior. what gives?

Jun 6, 2014 Project Member #6 stanley.lieber

the tvtropes HTML contains the following:

<base href=“http://tvtropes.org/pmwiki/pmwiki.php/” />

Jun 6, 2014 Project Member #7 stanley.lieber

i added a <base href> tag similar to the above at http://9front.org/pmwiki/pmwiki.php/Main/UnusualEars/index.html and now visiting http://9front.org/pmwiki/pmwiki.php/Main/UnusualEars/ can produce the same behavior.

Jun 6, 2014 Project Member #8 stanley.lieber

the entire baseref appears to replace the selected URL. note: examine the HTML of http://9front.org/pmwiki/pmwiki.php/Main/UnusualEars/index.html: the baseref http://tvtropes.org/pmwiki/pmwiki.php/ is what replaces the selected URL.