stefanwalther / sense-export

Just a simple button to export data in your Qlik Sense applications.
Other
29 stars 27 forks source link

prefix not identified properly due to qlik sense upgrade #45

Open pritam251 opened 6 years ago

pritam251 commented 6 years ago

Description

For November 2017 and versions above, prefix is not being identified properly

Steps to Reproduce

  1. Start with a new session of the browser with all cache and cookies cleaned up
  2. Log in to qliksense with a vProxy
  3. When export is clicked, it does not identify the prefix properly

The current logic to determine the prefix is based on keyword '/sense' in the url. This should change to '/extensions'

Current: var prefix = window.location.pathname.substr(0, window.location.pathname.toLowerCase().lastIndexOf('/sense') + 1);

Should change to: var prefix = window.location.pathname.substr(0, window.location.pathname.toLowerCase().lastIndexOf('/extensions') + 1);

Expected behavior

The prefix should be identified properly as expected

Environment

Chrome

Operating system

All OS

[ ] Windows
[ ] OSX
[ ] Linux

Qlik Sense

All

[ ] Desktop
[ ] Enterprise

Browser

All

[ ] Chrome
[ ] Firefox
[ ] Internet Explorer
[ ] Edge
[ ] Others: XXX
pritam251 commented 6 years ago

I forgot to mention that this happens only in mashups.