%2F in hash fragment causing 404 when loading iFrame
Oxygen general issues.
-
- Posts: 2
- Joined: Tue Dec 06, 2016 11:21 pm
%2F in hash fragment causing 404 when loading iFrame
Hi - I'm chasing down a problem that our users have been seeing when clicking links in Slack and some email clients. We have URLs such as
When I paste this into Slack, it looks just the same, but clicking it sends a different URL to the browser:
This results in a 404 in the 'content' iframe. What seems to be happening is that Slack is, correctly, percent-encoding special characters in the hash fragment.
Looking at toc-driver.js, the loadiframe function replaces %23 with #, but does not replace %2F with /. I did a quick local test, and replacing line 152
with
fixes things. Should we make this change in toc-driver.js on our server?
Code: Select all
https://streamsets.com/documentation/datacollector/latest/help/#Getting_Started/What_is_DataCollector.html#concept_sjz_rmx_3q
Code: Select all
https://streamsets.com/documentation/datacollector/latest/help/#Getting_Started%2FWhat_is_DataCollector.html%23concept_sjz_rmx_3q
Looking at toc-driver.js, the loadiframe function replaces %23 with #, but does not replace %2F with /. I did a quick local test, and replacing line 152
Code: Select all
dynamicURL = dynamicURL.replace(/%23/g,'#');
Code: Select all
dynamicURL = dynamicURL.replace(/%23/g,'#').replace(/%2F/ig,'/');
Pat Patterson | Community Champion | http://about.me/patpatterson
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: %2F in hash fragment causing 404 when loading iFrame
Post by bogdan_cercelaru »
Hello,
I've tested this scenario and I can confirm the issue.
As you found, to solve this issue, you have to edit the "${DITA_OT_DIR}\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\skins\desktop\toc_driver.js" file and replace:
with
Regards,
Bogdan
I've tested this scenario and I can confirm the issue.
As you found, to solve this issue, you have to edit the "${DITA_OT_DIR}\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\skins\desktop\toc_driver.js" file and replace:
Code: Select all
dynamicURL = dynamicURL.replace(/%23/g,'#');
Code: Select all
dynamicURL = dynamicURL.replace(/%23/g,'#').replace(/%2F/ig,'/');
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Tue Dec 06, 2016 11:21 pm
Re: %2F in hash fragment causing 404 when loading iFrame
Thanks for the confirmation, Bogdan. Will this be fixed in a future release?
Cheers,
Pat
Cheers,
Pat
Last edited by metadaddy on Sat Dec 10, 2016 1:04 am, edited 1 time in total.
Pat Patterson | Community Champion | http://about.me/patpatterson
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: %2F in hash fragment causing 404 when loading iFrame
Post by bogdan_cercelaru »
Hello,
Yes, this will be resolved in the next version of Oxygen.
Regards,
Bogdan
Yes, this will be resolved in the next version of Oxygen.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: %2F in hash fragment causing 404 when loading iFrame
Post by sorin_carbunaru »
Hello,
The new oXygen 19.0 was released last week and the issue you reported has been fixed in this version.
Best wishes,
Sorin Carbunaru
oXygen XML
The new oXygen 19.0 was released last week and the issue you reported has been fixed in this version.
Best wishes,
Sorin Carbunaru
oXygen XML
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service