Skip to content

Clicking on logo redirects to home#67

Open
Hekt000r wants to merge 2 commits intomac-s-g:masterfrom
Hekt000r:master
Open

Clicking on logo redirects to home#67
Hekt000r wants to merge 2 commits intomac-s-g:masterfrom
Hekt000r:master

Conversation

@Hekt000r
Copy link

Previously clicking on the logo on navbar didnt do anything, now it redirects to the home page (http://github-help-wanted.com/)
I tested it and it could successfully redirect from localhost:3100 to http://github-help-wanted.com/

add href so the user gets redirected to home when clicking the button they are redirected
Redirect to home when clicking logo
@matilopezz
Copy link

This pull request includes a minor change to the Navbar component to update the link for the header menu item.

@getpantoai
Copy link

PR Summary:

This PR updates the Navbar component so that clicking the logo now redirects users to the homepage via an added href attribute.

• Changed the Menu.Item wrapping the logo to include href="http://github-help-wanted.com/".

Reviewed by Panto AI

<Menu attached="top" inverted as={HeaderComponent}>
<Container>
<Menu.Item as="a" header>
<Menu.Item as="a" href="http://github-help-wanted.com/" header>

Choose a reason for hiding this comment

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

Consider using a configuration constant for the home URL rather than hardcoding "http://github-help-wanted.com/" for easier maintenance and environment flexibility

<Menu.Item as="a" href={links.internal.home_url} header>
  <Logo size="large" />
</Menu.Item>

Assuming links.internal.home_url is defined in your constants. If not, add it there and use it here for maintainability.

@getpantoai
Copy link

Reviewed up to commit:233f200e5e2decb339a2be0976619ef109b93b12

Reviewed by Panto AI

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.

3 participants