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

Url regeneration fix for attributed data #2115

Open
wants to merge 11 commits into
base: 1.x
Choose a base branch
from

Conversation

AaronNeonDigital
Copy link
Contributor

@AaronNeonDigital AaronNeonDigital commented Feb 17, 2025

This PR aims at fixing the UrlGenerator class, which does not account for the way Brands currently function.

Brands have the column name, and if you add attributes to it, then no urls will be generated (as it stands).

In this PR we focus the Url Generation to take priority on the column name, instead of attributes. We also adapted it, so it only checks for the attribute of "name", before proceeding.

and finally, we cleaned the method up so we are not nesting if statements.

Made it aware of attribute of name, otherwise use the column, when generating a slug.
Copy link

vercel bot commented Feb 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 17, 2025 0:39am

Copy link

vercel bot commented Feb 17, 2025

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

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