🕸📝Fergus Duniho wrote on Tue, Jul 3, 2018 01:56 PM UTC:
I fixed a problem with parsing semantic URLs. It was expecting complete words without spaces, which wouldn't allow for phrases. I changed that. Now, a semantic URL like http://www.chessvariants.com/tag/Chess+Cubed will work. However, the CSS is not working for http://www.chessvariants.com/tag/Chess+Cubed/. I think it interprets this as another directory level. Instead of using "../g/", using "/g/" should fix that.
I was thinking of URL encoding the semantic URLs, but I noticed that Chrome was doing it automatically when I clicked the link. I'm not sure how universal this behavior is, though. So I have urlencoded them anyway for safe measure. I decided on urlencode() rather than rawurlencode(), because plus signs look cleaner for spaces, and the choice had no effect on whether your chess+compounds tag would work. In every case, whether I used urlencode(), rawurlencode(), or left it unchanged, it didn't work. So, plus signs should be avoided in tags.
It's also time to change the tag links on this page to semantic URLs. The code I'm using in the footer for a tag URL is this:
I fixed a problem with parsing semantic URLs. It was expecting complete words without spaces, which wouldn't allow for phrases. I changed that. Now, a semantic URL like http://www.chessvariants.com/tag/Chess+Cubed will work. However, the CSS is not working for http://www.chessvariants.com/tag/Chess+Cubed/. I think it interprets this as another directory level. Instead of using "../g/", using "/g/" should fix that.
I was thinking of URL encoding the semantic URLs, but I noticed that Chrome was doing it automatically when I clicked the link. I'm not sure how universal this behavior is, though. So I have urlencoded them anyway for safe measure. I decided on urlencode() rather than rawurlencode(), because plus signs look cleaner for spaces, and the choice had no effect on whether your chess+compounds tag would work. In every case, whether I used urlencode(), rawurlencode(), or left it unchanged, it didn't work. So, plus signs should be avoided in tags.
It's also time to change the tag links on this page to semantic URLs. The code I'm using in the footer for a tag URL is this:
printf ("<A HREF="http://www.chessvariants.com/tag/%s" CLASS="tag">%s</A> ", urlencode($key), $key);
Note that $key happens to be the tag in this line of code, and you might be using a different variable for it.