summaryrefslogtreecommitdiff
path: root/doc/bugs/edit_preview_resolves_links_differently_from_commit.mdwn
blob: 320eca62609af65631e6d0540c2ba018c3cfaacf (plain)

I'm editing /posts/foo. If I create a link to a subpage (in my case, "discussion"), and hit preview, it gets resolved to /discussion, not /posts/foo/discussion. If I hit commit, the latter happens. This seems like a bug. --liw

That would be a bug, but I cannot reproduce it. For example, I edited http://kitenet.net/~joey/blog/entry/wikis_out_of_disk/ and added a discussion link and on preview it went to the page's discussion page. I don't normally have a toplevel /discussion page, but I also tried adding one, and the link still doesn't link to it. Testcase? --[[Joey]]

I can reproduce this on http://blog.liw.fi/posts/distributed-internet-witness-service/: if I edit the page, then preview (no changes made), the "discussion" link at the bottom of the page points in the preview to http://blog.liw.fi/discussion/, whereas the saved page has it pointing to http://blog.liw.fi/posts/distributed-internet-witness-service/discussion/. I'll arrange so that you can edit the page to test this. --liw

Joey suggested my wiki might be missing the FORCEBASEURL snippet from the misc.tmpl template, and he's right. Mea culpa: I had not diffed the various templates when upgrading and had missed that updated. [[done]] --liw