Skip to content

[BUGFIX] "Home" link in the breadcrumb redirects to the "Services" page #588

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

Merged

Conversation

hoangpn
Copy link
Contributor

@hoangpn hoangpn commented May 14, 2025

On some pages of Promgen, the Home link in the breadcrumb is redirected to the Services page instead of the Home page. We have fixed all these errors by using the "breadcrumb" template tag. We also made some improvements to this template tag to handle the Farm object and add the "v-pre" tag by default.

@hoangpn hoangpn requested a review from a team as a code owner May 14, 2025 08:36
@hoangpn hoangpn force-pushed the chores/fix_home_link_in_breadcrumb branch 2 times, most recently from e0768bc to bc21053 Compare May 15, 2025 02:51
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

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

Hello @hoangpn,

Your single commit is doing too many things. Basically, what you did is:

  • Add the v-pre tag to the breadcrumb template tag
  • Add the farm generator to the breadcrumb template tag
  • Reuse the breadcrumb template tag everywhere

Could you please split your changes in 3 separate commits?
You can use my list above for the commit message titles, and use your own words to explain the reason (and other details) on each commit message body.

hoangpn added 3 commits May 15, 2025 15:15
We add the farm generator to the breadcrumb template tag to create breadcrumbs
for pages associated with a Farm instance.
We included v-pre in the breadcrumb template tag to ensure that every breadcrumb generated
by this template tag in Promgen contains the v-pre element.
We reuse the breadcrumb template tag everywhere to standardize the generation of a page's
breadcrumb in Promgen. This also helps fix errors on some pages of Promgen that the Home link
in the breadcrumb is redirected to the Services page instead of the Home page.
@hoangpn hoangpn force-pushed the chores/fix_home_link_in_breadcrumb branch from bc21053 to 2224c3b Compare May 15, 2025 08:24
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@vincent-olivert-riera vincent-olivert-riera merged commit 6784496 into line:master May 15, 2025
5 checks passed
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