From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: http://orgmode.org/worg/code/org-info-js/ broken
Date: Mon, 02 Feb 2015 13:25:43 +0100 [thread overview]
Message-ID: <84iofkmreg.fsf@gmail.com> (raw)
In-Reply-To: 1422802087.10294.5.camel@svjatoslav.eu
Hello!
>> Svjatoslav Agejenko <svjatoslav@svjatoslav.eu> writes:
>>
>> > Button "Show Org source" on page
>> > http://orgmode.org/worg/code/org-info-js/
>> > does not work.
>>
>> You could try the explicit
>> http://orgmode.org/worg/code/org-info-js/index.html instead. The
>> button's action depends on the concrete form of the URL in particular
>> the substring "html".
>
> That last link with explicit index.html seems to work. Still when
> searching Google for org-mode related things it directed me there:
> http://orgmode.org/worg/code/org-info-js/
>
> And this URL looks valid by itself. No hints anywhere that I shall use
> index.html suffix.
BTW also many other pages on worg have this button also
e.g. http://orgmode.org/worg/. The relevant code in those pages is
#v+
<script type="text/javascript">
function rpl(expr,a,b) {
var i=0
while (i!=-1) {
i=expr.indexOf(a,i);
if (i>=0) {
expr=expr.substring(0,i)+b+expr.substring(i+a.length);
i+=b.length;
}
}
return expr
}
function show_org_source(){
document.location.href = rpl(document.location.href,"html","org.html");
}
</script>
#v-
and it looks like a template. A reasonable fix to make the button work
for URLs without suffix 'index.html' might be to change this code
accordingly.
Unfortunately my finding-fu was not enough to find the source of that
code.
> I hope whoever is responsible will fix this.
It's the community AFAICS. Let's hope she will do something.
Best regards, Marco
--
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2
prev parent reply other threads:[~2015-02-02 12:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 5:58 http://orgmode.org/worg/code/org-info-js/ broken Svjatoslav Agejenko
2015-01-29 9:09 ` Marco Wahl
2015-01-30 9:40 ` Marco Wahl
2015-02-01 14:48 ` Svjatoslav Agejenko
2015-02-02 12:25 ` Marco Wahl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84iofkmreg.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.