If the canonical field is empty the meta tag is still generated as the URL of the node. Is this by design?
Correct me if I am wrong, but is it not the case that canonical URLs are supposed to send a search engine crawler elsewhere - what does noting the current page as the canonical adress do?
I am very new to websites compared to most people here, so this may be a non-issue. If it is, I apologize.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | nodewords-n1107610-5.patch | 421 bytes | damienmckenna |
| #4 | nodewords-n1107610.patch | 969 bytes | damienmckenna |
Comments
Comment #1
damienmckennaSounds like it needs to be verified & fixed for the next release.
Comment #2
dave reidI cannot duplicate this with the current code (6.x-1.x).
Comment #3
kalis1I confirm the bug, which happens when you've previously set a canonical url, and then erase it. In this configuration, the canonical meta displayed in the source code is equal to the node's path...
Comment #4
damienmckennaI believe this is working in the current 6.x-1.x codebase because of the following:
This will not pass an empty string to the url() function, thus if no path string is available it will not try to display anything.
All the same, here's a tiny tweak.
Comment #5
damienmckennaThe tweak rerolled.
Comment #6
3dloco commentedThanks Damien, patch in #5 works for me.
Comment #7
damienmckenna@3dloco: Thanks for the review. This fix has been committed.