Issue with # in URL with a Wordpress theme?
I am having a severe problem and have no clue about what is going on... I
will specify the general issue which is causing multiple issues on this
Wordpress powered portal.
Steps to reproduce:
Visit the URL: http://gamersgeographic.com/en/ (or any post on this site)
Append #abc or #anything to the URL
The URL tries to resolve for a second and magically deletes the "#" and
instead changes to /abc or /anything , which of course does not exist and
gives a 404 page not found.
Even if the local anchor with #abc exists, behaviour is the same.
Now, consider the case below:
Visit http://gamersgeographic.com/monster-hunter-diary-1/
Comment link appends a #comments or #respond depending on whether a
comment is there or not.
Both the anchors exist on the single post page
Still it redirects after finding them, to /comments and gives 404
Direct URL with #comments works e.g.
http://gamersgeographic.com/monster-hunter-diary-1/#comments works but
when I change any base URL to #comments, it redirects to 404...
I have tried several combinations with Permalinks, so it is not a problem
with that. I even wrote my own Comment link generator in php with just a
plain href="#comments"
but still no luck...
If you need any further information about any function's code in
theloop.php or anything please let me know.
Thanks in advance ! Regards
No comments:
Post a Comment