Skip to content

Fix module logo not displaying on configuration page - #95

Merged
kpodemski merged 1 commit into
PrestaShop:devfrom
boo-code:fix/module-config-logo-path
Jul 27, 2026
Merged

Fix module logo not displaying on configuration page#95
kpodemski merged 1 commit into
PrestaShop:devfrom
boo-code:fix/module-config-logo-path

Conversation

@boo-code

Copy link
Copy Markdown
Questions Answers
Description? The module configuration page rendered its logo from a relative path (../modules/ps_wirepayment/logo.png). That resolved correctly under the legacy AdminModules URL, but the PrestaShop module manager is now a Symfony route (/admin-dev/improve/modules/manage/action/...), so the relative path resolves to a non-existent admin URL and the logo fails to load. Switched to the absolute {$module_dir} path that Module::display() already assigns, so the logo resolves to /modules/ps_wirepayment/logo.png regardless of the back office URL. This is the same pattern already used by other bundled modules (e.g. ps_googleanalytics).
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#39813.
How to test? Back office → Module Manager → configure ps_wirepayment. Before: the logo at the top of the info block is broken (the request to .../manage/action/modules/ps_wirepayment/logo.png 404s). After: the logo displays, served from /modules/ps_wirepayment/logo.png (HTTP 200).

The configuration info block referenced the logo with a relative path
(../modules/ps_wirepayment/logo.png), which resolved correctly under the
legacy AdminModules URL but breaks under the PrestaShop Symfony module
manager route (/admin-dev/improve/modules/manage/action/...), where it
points to a non-existent admin URL and 404s.

Use the absolute {$module_dir} path assigned by Module::display() so the
logo resolves to /modules/ps_wirepayment/logo.png regardless of the
back office URL.
@ps-jarvis

Copy link
Copy Markdown

Hello @boo-code!

This is your first pull request on ps_wirepayment repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Jun 27, 2026
@ps-jarvis ps-jarvis added the Waiting for QA Status: action required, waiting for test feedback label Jul 27, 2026
@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Jul 27, 2026
@Codencode Codencode added the Waiting for QA by Community Status: Action required, Waiting for test feedback by Community label Jul 27, 2026
@Codencode Codencode added this to the 2.2.2 milestone Jul 27, 2026
@Codencode

Copy link
Copy Markdown
Member

I tested the PR and it works correctly, so for me it's QA ✔️

ps_wirepayment

@PrestaShop/committers
I'd like confirmation on the milestone to make sure it's correct before merging.

@Codencode Codencode added QA ✔️ by Community Status: Check done by community member, Code approved and removed Waiting for QA Status: action required, waiting for test feedback Waiting for QA by Community Status: Action required, Waiting for test feedback by Community labels Jul 27, 2026
@kpodemski
kpodemski merged commit fff18c7 into PrestaShop:dev Jul 27, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from To be tested to Merged in PR Dashboard Jul 27, 2026
@ps-jarvis ps-jarvis moved this from Merged to To be tested in PR Dashboard Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA ✔️ by Community Status: Check done by community member, Code approved

Projects

Status: To be tested

Development

Successfully merging this pull request may close these issues.

ps_checkpayment & ps_wirepayment don't display their logos on configuration page

4 participants