プロジェクト

全般

プロフィール

Vote #75088

完了

Generate full URLs to images and linked pages in the Wiki HTML export

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

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

0%

予定工数:
category_id:
1
version_id:
99
issue_org_id:
16446
author_id:
2784
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The HTML export of wiki pages does not generate full links which makes them about useless in the actual standalone HTML document.

The attached patch changes the export so that full URLs are generated for generated links including @src@ attributes in images. This leads to the correct image attachmentss being referenced in the HTML page, which however might still require authentication.

The proposed solution is more correct than the current one but much simpler than the one proposed in #3228.


journals

A problem with this approach is non-portability of exported files to other networks (in case of a LAN-based Redmine instance) and disconnected devices (in case of an Internet-based Redmine instance).
--------------------------------------------------------------------------------
Sure, there are still cases where this doesn't work. However, this approach is better than what's currently there, namely that it doesn't work in any case.

To have a fully local export, the user would have to save the file again from their browsers which would then include the fetched remote files in a local directory accompanying the HTML file. While this could also partially done in Redmine by exporting a full archive, it's much more work than this simple patch as you still would have to consider resources that are merely referenced but are not local to the Redmine instance, e.g. external images.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Holger Just wrote:
> Sure, there are still cases where this doesn't work. However, this approach is better than what's currently there, namely that it doesn't work in any case.

Absolutely agree with Holger. The patch provided by Holger can be applied with a very slight change.

I suggest delivering this feature in Redmine 4.0.0 or 4.1.0. I am setting target version to 4.1.0.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed. Thank you for providing the patch.
--------------------------------------------------------------------------------


related_issues

relates,New,3228,Attatched wiki images are not included in export to HTML
relates,Closed,20910,Hierarchy in TOC is not preserved when Wiki index is exported to HTML

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0