| Summary: | [Webapp] Named anchor is stripped from InfoCenter URLs copied to browser address bar | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ordinant ■ <ordinant> | ||||
| Component: | User Assistance | Assignee: | Chris Goldthorpe <cgold> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bonnies, cgold, markus.kell.r | ||||
| Version: | 3.6.2 | ||||||
| Target Milestone: | 3.8 M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ordinant ■
I'm pretty sure that creating a bookmark from a help page which included an anchor as part of the URL has never worked. The reason for this is that the anchor is not passed to the server. It is handled by the web client and applies only to the outermost frame of the help system. The syntax below must be used to create a bookmark to an anchor within a help page. http://docs.streambase.com/latest/index.jsp?topic=/com.streambase.sb.ide.help/data/html/reference/expressions.html&anchor=expressions_unzip_function The help server should either rewrite the anchors in relative links, or maybe the index.jsp could get some smartness to forward the anchor to the embedded frame. Example in Helios docs: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/gettingStarted/qs-Quickviews.htm On this page, there's a link "Type Hierarchy section" with href="qs-6.htm#quick_type_hierarchy". The anchor works when I open the link in place, but it is stripped away when I try to open it in a new tab or copy the link. The help server does not get to see anchors which are pasted into the address bar. Anchors are always interpreted by the web client and are not passed to the server. OK, then I guess the redirection should be made a bit smarter. Here's an idea how to preserve the anchor using a redirection page that saves a cookie with the anchor: http://forum.springsource.org/showthread.php?101421-Preserving-URL-anchor-when-redirecting (In reply to comment #4) > OK, then I guess the redirection should be made a bit smarter. Here's an idea > how to preserve the anchor using a redirection page that saves a cookie with > the anchor: > http://forum.springsource.org/showthread.php?101421-Preserving-URL-anchor-when-redirecting What's the chance for getting a fix to this? Created attachment 202626 [details]
Patch
I figured out how to fix this by reading the anchor in JavaScript and converting it to a parameter which would get passed to the server when index.jsp was loaded from JavaScript.
Patch has been committed to Git master, Fixed. |