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

Fix: return landingpage url #31

Merged
merged 6 commits into from
Sep 19, 2024
Merged

Fix: return landingpage url #31

merged 6 commits into from
Sep 19, 2024

Conversation

ah-net
Copy link
Collaborator

@ah-net ah-net commented Jun 21, 2024

When you use an landingpage for an filter, and use the same url for the landingpage the returned url is not correct. This pull request fixes that.

For example. If you have an ALP configured for the category shoes. With the filter brand = nike. And you make the url of the landingpage /shoes/brand/nike

This causes the url of the page to be incorrect after selecting nike on the brand filter (category shoes). And if you select 2 filters it's impossible to disable the first filter.

How to test

  • Enable ajax
  • Enable Url path slug strategy
  • Make an ALP with an filter. And make the url of the ALP the same as the filter url it replaces
  • Make sure the ALP has Allow link in faceted search enabled.

@ah-net ah-net changed the base branch from master to beta June 21, 2024 09:18
@ah-net ah-net requested a review from jansentjeu June 21, 2024 09:19
@ah-net
Copy link
Collaborator Author

ah-net commented Jun 21, 2024

It seems there is an bug in the code which causes issues if you use the store code in the url and don't use ajax. I will fix this

@ah-net
Copy link
Collaborator Author

ah-net commented Jun 27, 2024

Fixed the bug. @jansentjeu This is ready to be tested.

@ah-net ah-net merged commit a63f1b7 into beta Sep 19, 2024
1 check passed
@ah-net ah-net deleted the fix-return-landingpage-url branch September 19, 2024 08:55
ah-net added a commit that referenced this pull request Sep 24, 2024
commit 6c59807
Merge: b087d6f 27b6967
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Tue Sep 24 14:39:53 2024 +0200

    Merge branch 'master' into beta

commit b087d6f
Merge: a63f1b7 cb61179
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Sep 19 11:36:00 2024 +0200

    Merge pull request #33 from EmicoEcommerce/fix-bump-php-version

    Fix: bump php version

commit cb61179
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Sep 19 11:15:24 2024 +0200

    fix: bump php version

commit a63f1b7
Merge: 7ce708c 15b7a61
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Sep 19 10:55:54 2024 +0200

    Merge pull request #31 from EmicoEcommerce/fix-return-landingpage-url

    Fix: return landingpage url

commit 7ce708c
Merge: 69e0406 37a9fef
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Sep 19 10:46:29 2024 +0200

    Merge pull request #32 from EmicoEcommerce/fix-select-attribute

    fix: selecting attribute doesn't update

commit 37a9fef
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Tue Sep 17 10:46:38 2024 +0200

    fix: selecting attribute

commit 15b7a61
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Fri Sep 13 13:18:12 2024 +0200

    Revert "Update RendererPlugin.php"

    This reverts commit b1d986b.

commit b1d986b
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Fri Sep 13 13:02:54 2024 +0200

    Update RendererPlugin.php

commit 9bd57b4
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Jun 27 10:04:04 2024 +0200

    Remove space

commit ce621b2
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Jun 27 10:01:38 2024 +0200

    Fix bug without ajax

commit d50ae96
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Fri Jun 21 11:10:43 2024 +0200

    fix: landing page url

commit 8bc79ac
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Thu Jun 20 10:14:35 2024 +0200

    fix: bug with landingpage url

commit 69e0406
Author: evs-xsarus <44158071+evs-xsarus@users.noreply.github.com>
Date:   Tue Apr 30 15:58:23 2024 +0200

    Make installable on PHP 8.x (#24)

    * fix: make installable on php 8.3

commit 9ac763e
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Tue Apr 30 15:42:25 2024 +0200

    fix: save tweakwise filter template

commit 103be57
Author: ah-net <103565001+ah-net@users.noreply.github.com>
Date:   Tue Apr 30 15:41:50 2024 +0200

    chore: update version (#28)

    * chore: update version

    * chore: remove composer version

    * chore: support tweakwise 6.0

    * chore: support version 5.0 of attribute landing
@ah-net ah-net mentioned this pull request Sep 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants