Re: loading incorrect webpage

"jindam, vani via Lynx-dev" <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Mon, Nov 14, 2022 at 05:28:13PM +0000, jindam, vani via Lynx-dev wrote:
> i am using "hlynx"  f.exec "xterm -geometry 110x45 -e lynx 
> https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak&action=history
>  &" 
> on my .twmrc (twm window manager). 

> when i click hlynx on twm menu:

> actual result:
> https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak
> 
> expected result:
> https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak&action=history

> This is a twm/shell issue, not a Lynx issue.  I presume that twm is calling
> a shell to execute the command, and the shell is interpreting the '&' in the
> URL as a metacharacter.  You need to look at how to quote the '&' properly
> in the twm configuration (might be as simple as putting a \ before it).

> imc

i have tried following, none of them worked:

https%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DUser%3AJindam_vani%2Fzandbak%26action%3Dhistory

https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak\&action=history

https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak%26action=history

however, simple solution given at unix.stackexchange (1) 
works correctly:

"hlynx"  f.exec "xterm -geometry 110x45 -e lynx 'https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak&action=history' &

probably meaningless, but urlencode was also giving 
incorrect results for:
$ urlencode https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak&action=history

but it shows correct result:
$ urlencode 'https://en.wikipedia.org/w/index.php?title=User:Jindam_vani/zandbak&action=history'

(1) https://unix.stackexchange.com/questions/563/using-urls-with-parenthesis-with-lynx

regards,
jindam, vani

toots: @[email protected]
others: en.wikipedia.org/wiki/User:Jindam_vani
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.