- 
                Notifications
    
You must be signed in to change notification settings  - Fork 31
 
fix: Bad URL generation for the CarouselSlidePlugin #293
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
Conversation
          
Reviewer's GuideThis PR corrects URL rendering for the CarouselSlidePlugin by unifying the context key to mixin_link and updating related templates to reference mixin_link instead of the old link key, ensuring real URLs are output. Class diagram for CarouselSlidePlugin context changesclassDiagram
    class CarouselSlidePlugin {
        +render(context, instance, placeholder)
        - context["link"]
        + context["mixin_link"]
    }
    File-Level Changes
 Tips and commandsInteracting with Sourcery
 Customizing Your ExperienceAccess your dashboard to: 
 Getting Help
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @nchaourar - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@           Coverage Diff           @@
##             main     #293   +/-   ##
=======================================
  Coverage   89.01%   89.01%           
=======================================
  Files         124      124           
  Lines        3385     3385           
  Branches      288      288           
=======================================
  Hits         3013     3013           
  Misses        254      254           
  Partials      118      118           ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
  | 
    
| 
           @nchaourar Nice catch! This probably got through undetected since we do not test the link functionality in   | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Hello just a quick PR to fix the CarouselSlidePlugin url generation.
The URL returned was a json object '{'internal_link': 'cms.page:2', 'cache': '/real/url'}' instead of the real URL.
I think it was just a small oversight in the code due to a refactoring 4 month ago (490f018).
Summary by Sourcery
Bug Fixes: