Strange URL routing for AnsPress (with AskBug)

4.35K viewsIssues
0

I’ve noticed a little bit strange way of WordPress with AnsPress to handle some urls.

For example? if I put a URL like this:

http://<site-domain>/<whatever-you-want>/d
it will redirect me to a question page of some question, the final URL will be like:
http://<site-domain>/questions/5

What’s interesting is that if you’ll change in my original URL the ending of “/d” to, say, “/a” nothing will work and you’ll get a 404 page. It also works with other symbols. Sometimes it can redirect you to some wordpress page. I couldn’t figure out any particular logic or relation between malformed URLs and redirections.

I also tested this on AskBug test website and it was giving the same problem.

Just for example, try this:
https://demo.anspress.io/askbug/thecompletenonsense/d

Any ideas?

0

Hello,
Its default WordPress behavior. Same thing will happen if you disable AnsPress.

commented on answer

Huh, used wordpress for more than 5 years and never noticed smth. like this. Will check, i don’t like this kind of behavior.

You are viewing 1 out of 1 answers, click here to view all answers.