プロジェクト

全般

プロフィール

Vote #72330

完了

Can't use non-latin anchor in wiki

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
47
issue_org_id:
11577
author_id:
60850
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
52
ステータス-->[Closed]

説明

On wiki pages if I user latin anchor it works great. But if I use non-latin (russian, for example) it renders to URL without text after @#@. Link like @Wiki@ renders to URL @http://domain.ru/projects/foo/wiki/Wiki#@.


journals

Works on redmine.org, not on trunk with PG and Ruby 1.9.3.

Please, what does your environment look like (see [[SubmittingBugs]])?

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Etienne Massip wrote:
> Works on redmine.org, not on trunk with PG and Ruby 1.9.3.
>
> Please, what does your environment look like (see [[SubmittingBugs]])?

I am sorry, I forgot it. Here it is.
<pre>
redmine$ RAILS_ENV=production rake about
About your application's environment
Ruby version 1.9.3 (x86_64-linux)
RubyGems version 1.8.24
Rack version 1.4
Rails version 3.2.6
Active Record version 3.2.6
Action Pack version 3.2.6
Active Resource version 3.2.6
Action Mailer version 3.2.6
Active Support version 3.2.6
Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000015dbed8>,
Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions,
ActionDispatch::DebugExceptions,ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement,
ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head,
Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root /var/opt/redmine
Environment production
Database adapter postgresql
Database schema version 20120422150750
</pre>

and PostgreSQL 9.1.2
--------------------------------------------------------------------------------
Fixed in r10206 for ruby1.9 only.
--------------------------------------------------------------------------------
Please check the following patch. It generates anchors using universal transliteration and works with Ruby 1.8.7.
--------------------------------------------------------------------------------
Thanks but transliteration is kind of a workaround here, utf8 anchors are valid and should be preserved. The fix works with ruby1.8, ruby1.9 and jruby: http://www.redmine.org/builds/index.html.
--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン2.1.0_47 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0