﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15985	Cannot Reach Trac Anchors in Help Browser	Hb---	team	"==== What steps will reproduce the problem?
1. Open the Help Browser 
2. Click on an anchor hyperlink generated by [wiki:/WikiFormatting#SettingAnchors Trac].

==== What is the expected result?
The help page scrolls to the position of the anchor.

==== What happens instead?
The error message ""[source:/josm/trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java#L642 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~~ on Help/CommandLineOptions in the first paragraph.

The second format does not fit the Regex **[source:/josm/trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java#L619 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.
}}}"	defect	closed	normal	18.02	Core	latest	fixed	help	
