Bug #3031
closedLink to reply to blog post is going to Commons wiki
0%
Description
Hi everyone, here's a weird bug: one of my and Michael's students wrote a post on our course blog that she titled "wiki!", and when I click the "Leave a reply" link on the post to comment on it, the link redirects from here:
http://2014core2.commons.gc.cuny.edu/wiki/#respond
to here:
http://2014core2.commons.gc.cuny.edu/wiki/index.php/Welcome_to_the_Academic_Commons_Wiki#respond
Ditto with trying to go to her post directly, this link also redirects: http://2014core2.commons.gc.cuny.edu/wiki/
Here's the front page of the blog, scroll to her post "wiki!" one down from the top.
Thanks for taking a look!
Updated by Boone Gorges over 9 years ago
- Category name set to WordPress (misc)
- Status changed from New to Assigned
- Assignee set to Boone Gorges
- Target version set to 1.5.18
- Estimated time set to 1.00 h
Oh lordy. The short-term fix is to rename the post so that it doesn't have the slug 'wiki'. I'll look to see if I can come up with a broader fix for the conflict issue.
Updated by Maura Smale over 9 years ago
Thanks Boone! I'll ask our student to rename in the short term.
Updated by Boone Gorges over 9 years ago
- Target version changed from 1.5.18 to 1.5.19
Hi Maura - I'm afraid I didn't get a chance to look at this for our current release - I'll try to get it for the next one.
Updated by Boone Gorges over 9 years ago
- Status changed from Assigned to Resolved
There's no general way that I can prevent pages with the address '/wiki/' from going to the Commons wiki. It's a byproduct of the fact that the Commons has an actual file at /wiki/index.php; Apache will always serve it instead of falling back on WordPress's rewrite rules.
As a workaround, I've put a block in place so that it's impossible to create a page that will have the address /wiki/. https://github.com/castiron/cac/commit/9db2930aba13547e92f3efe77ef7f6d97d251038 You can still create blog posts with the slug 'wiki', but that slug can't come immediately after the domain (eg foo.commons.gc.cuny.edu/wiki/). This should be a good enough solution going forward.