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 slide url + refacto #80

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Fix slide url + refacto #80

merged 2 commits into from
Mar 14, 2023

Conversation

SharakPL
Copy link
Contributor

@SharakPL SharakPL commented Mar 10, 2023

Questions Answers
Description? Adds support for all types of link, including the one starting with /
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#31721
How to test? 1. In BO go to Modules > ps_imageslider
2. Change the slide's link
3. Check the link set on this slide in FO.

Links to test:
http://prestashop.com/en/download
https://prestashop.com/en/download
//prestashop.com/en/download
prestashop.com/en/download
/content/4-about-us
content/4-about-us
index.php
search?controller=search&s=mug
#footer

Expected result for shop domain localhost:8001:
http://prestashop.com/en/download
https://prestashop.com/en/download
//prestashop.com/en/download
//prestashop.com/en/download
http://localhost:8001/content/4-about-us
http://localhost:8001/content/4-about-us
http://localhost:8001/index.php
http://localhost:8001/search?controller=search&s=mug
#footer

ps_imageslider.php Outdated Show resolved Hide resolved
ghost
ghost previously approved these changes Mar 12, 2023
leemyongpakvn
leemyongpakvn previously approved these changes Mar 13, 2023
@SharakPL SharakPL dismissed stale reviews from leemyongpakvn and ghost via 25d20b0 March 13, 2023 12:23
@SharakPL SharakPL requested a review from a team March 13, 2023 12:39
@SharakPL
Copy link
Contributor Author

Changed the function name, but it's used only in this file so it shouldn't be considered a BC break.

@Hlavtox Hlavtox added this to the 3.1.2 milestone Mar 13, 2023
@SharakPL SharakPL removed the request for review from a team March 13, 2023 14:17
@MhiriFaten MhiriFaten self-assigned this Mar 14, 2023
Copy link

@MhiriFaten MhiriFaten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @SharakPL ,

I have checked your PR :

PS8.0.1 ✔️
The issue is well fixed.

PS1.7.8.8

Untitled_.Mar.14.2023.11_35.AM.webm

The image slide still with the old URL after editing and saving (Same problem with Title, Caption and description)

Could you checked it please?
Thank you.

@SharakPL
Copy link
Contributor Author

@MhiriFaten you saved url for english version

obraz

but checked the result on french

obraz

Please check again for correct version.

Copy link

@MhiriFaten MhiriFaten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry that was it !

Thank you! so it is QA approved ✔️

@SharakPL
Copy link
Contributor Author

Thanks @MhiriFaten :)

@kpodemski kpodemski merged commit ed4d07f into PrestaShop:dev Mar 14, 2023
@kpodemski
Copy link
Contributor

thanks @SharakPL 🎉

@SharakPL SharakPL deleted the fix-slide-url branch March 14, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ps_imageslider: relative links are broken
5 participants