Link to reply to blog post is going to Commons wiki
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:
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!
#1 Updated by Boone Gorges over 5 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.
#5 Updated by Boone Gorges over 5 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.