Hexagon Geospatial
MENU

WebGIS

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Super Contributor
Posts: 299
Registered: ‎02-09-2016

Can't use link to pdf in xslt template for consumer portal feature info

HI team,

 

Our client has a consumer portal and uses xslt template for designing feature info attribute panel. There is a link to a pdf file and when we click on that it opens a new tab with the pdf link but the pdf can't be displayed and the page is just blank. If we copy the link and paste into another tab then the pdf showing normally. It looks to us that there some security settings for the iFrame that wraps the feature info attribute panel that we need to modify.

 

Appreciate all suggestions and ideas

 

Kind regards,

Technical Evangelist
Posts: 990
Registered: ‎09-11-2015

Re: Can't use link to pdf in xslt template for consumer portal feature info

Logged as product defect. This problem affects only Chrome and IE11. PDF links work in Firefox or Edge. It seems there's a problem with the iFrame sandbox settings.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Technical Evangelist
Posts: 990
Registered: ‎09-11-2015

Re: Can't use link to pdf in xslt template for consumer portal feature info

I also found this bug in Chromium which seems to be related:

https://bugs.chromium.org/p/chromium/issues/detail?id=413851

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Technical Evangelist
Posts: 990
Registered: ‎09-11-2015

Re: Can't use link to pdf in xslt template for consumer portal feature info

A working work-around has been found for this behavior - it is necessary to disable iframe "sandboxing". You can edit app.js script file, look for

string sandbox="allow-same-origin allow-scripts allow-popups" and then delete it completely. This will remove the sandbox attribute from an iframe. Use at your own risk as we don't know possible side effects without complex testing.

This seems as a limitation or bug of Chrome and IE11. I've made some searching and found very likely related open bug against Chromium engine:

https://bugs.chromium.org/p/chromium/issues/detail?id=413851

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.