Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: params.data is undefined #1

Open
fritzmg opened this issue Sep 27, 2021 · 0 comments
Open

Uncaught TypeError: params.data is undefined #1

fritzmg opened this issue Sep 27, 2021 · 0 comments

Comments

@fritzmg
Copy link

fritzmg commented Sep 27, 2021

If an attribute filter has search enabled and link masking is enabled, then the following error will occur, if you filter the attribute via the search input and then click on an attribute to filter:

Uncaught TypeError: params.data is undefined

dataPost.js from Magento needs the data-post variables, e.g.

data-post='{"action":"https:\/\/shop.local\/linkmasking\/filter\/redirect\/","data":{"url":"https:\/\/shop.local\/lebensmittel\/jamsession","uenc":"aHR0cHM6Ly9teXByb2R1Y3QubG9jYWwvbGViZW5zbWl0dGVs"}}'

However, once the list is filtered, the data-post attribute will look like this:

data-post="https://shop.local/lebensmittel/jamsession"

i.e. missing the JSON with action, data etc. - which will then cause the error when trying to click the filter item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant