Project

General

Profile

Actions

Bug #3031

closed

Link to reply to blog post is going to Commons wiki

Added by Maura Smale almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2014-02-13
Due date:
% Done:

0%

Estimated time:
1.00 h
Deployment actions:

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!

Actions #1

Updated by Boone Gorges almost 11 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.

Actions #2

Updated by Maura Smale almost 11 years ago

Thanks Boone! I'll ask our student to rename in the short term.

Actions #3

Updated by Boone Gorges almost 11 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.

Actions #4

Updated by Maura Smale over 10 years ago

No worries, thanks Boone!

Actions #5

Updated by Boone Gorges over 10 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.

Actions #6

Updated by Matt Gold over 10 years ago

Sounds good -- thanks, Boone.

Actions #7

Updated by Maura Smale over 10 years ago

Thanks Boone, sounds good to me too.

Actions

Also available in: Atom PDF