Opened 8 years ago
Last modified 8 years ago
#15985 closed defect
Cannot Reach Trac Anchors in Help Browser — at Initial Version
| Reported by: | Hb--- | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 18.02 |
| Component: | Core | Version: | latest |
| Keywords: | help | Cc: |
Description
What steps will reproduce the problem?
- Open the Help Browser
- Click on an anchor hyperlink generated by Trac.
What is the expected result?
The help page scrolls to the position of the anchor.
What happens instead?
The error message "Failed to open help page. The target URL is empty." appears.
Please provide any additional information below. Attach a screenshot if possible.
JOSMs wiki pages have two kinds of references to anchors. The first are generated by PageOutline and TOC macros and have the format #anchortarget. The second kind is generated by Trac alone and has the format wiki/path/pagename#anchortarget. Please see an example with both kinds in the SandBox.
The second format does not fit the Regex s.matches("#.*") which wants a # sign as first character.
I suggest to change the search criteria.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2018-02-19 01:14:22 +0100 (Mon, 19 Feb 2018) Build-Date:2018-02-19 00:19:27 Revision:13446 Relative:URL: ^/trunk Identification: JOSM/1.5 (13446 en) Windows 7 64-Bit OS Build number: Windows 7 Professional (7601) Memory Usage: 909 MB / 3604 MB (424 MB allocated, but free) Java version: 1.8.0_161-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1280x1024 Maximum Screen Size: 1280x1024 Program arguments: [--language=en, --trace] Dataset consistency test: No problems found Last errors/warnings: - E: Failed to open help page - Failed to open help page. The target URL is empty.


