Needlworks / Textcube

Textcube : Brand yourself! / Personalized web publishing platform with multi-user support
http://www.textcube.org
Other
208 stars 55 forks source link

Canonical URL meta tag support #1648

Closed inureyes closed 10 years ago

inureyes commented 10 years ago

Summary

inureyes commented 10 years ago

https://support.google.com/webmasters/answer/139394?hl=en

inureyes commented 10 years ago

https://github.com/Needlworks/Textcube/commit/d7a9485a20fb1f18fb364485efa2e2c5f3a80fdb

inureyes commented 10 years ago

https://github.com/Needlworks/Textcube/commit/a3439f363774f74ebd760a01423e7485eb087342

inureyes commented 10 years ago

Do not know why, but automatic code ticket matching is not working on this issue. (-)

inureyes commented 10 years ago

For some cases, double slashes are appeared. (e.g. http://example.org//123 )

pat-al commented 10 years ago

framework/model/URIHandler.php 181째 줄 $this->uri['permalink'] = rtrim($this->uri['default'].$this->suri['directive'].(empty($this->suri['id']) ? '/'.$this->suri['value'] : (substr($this->suri['directive'],-1)=='/' ? '' : '/').$this->suri['id']),'/');

이렇게 substr 함수 끼워 넣어 쓰고 있습니다. 숫자 글 주소 쓸 때만 $this->suri['directive']에 빗금이 덧붙는 듯 합니다.

inureyes commented 10 years ago

@pat-al :+1: