]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/edit_preview_resolves_links_differently_from_commit.mdwn
Tag patches with the plugin to which they apply, or core
[ikiwiki.git] / doc / bugs / edit_preview_resolves_links_differently_from_commit.mdwn
1 I'm editing /posts/foo. If I create a link to a subpage (in my case,
2 "discussion"), and hit preview, it gets resolved to /discussion, not
3 /posts/foo/discussion. If I hit commit, the latter happens. This seems like
4 a bug. --liw
5
6 > That would be a bug, but I cannot reproduce it. For example, I edited
7 > <http://kitenet.net/~joey/blog/entry/wikis_out_of_disk/> and added a
8 > discussion link and on preview it went to the page's discussion page. I
9 > don't normally have a toplevel /discussion page, but I also tried adding
10 > one, and the link still doesn't link to it. Testcase? --[[Joey]] 
11
12 >> I can reproduce this on <http://blog.liw.fi/posts/distributed-internet-witness-service/>:
13 >> if I edit the page, then preview (no changes made), the "discussion" link at the bottom
14 >> of the page points in the preview
15 >> to <http://blog.liw.fi/discussion/>,
16 >> whereas the saved page has it pointing to
17 >> <http://blog.liw.fi/posts/distributed-internet-witness-service/discussion/>.
18 >> I'll arrange so that you can edit the page to test this.
19 >> --liw
20
21 >> Joey suggested my wiki might be missing the FORCEBASEURL snippet from the misc.tmpl
22 >> template, and he's right. Mea culpa: I had not diffed the various templates when upgrading
23 >> and had missed that updated. [[done]] --liw