Skip to content

Commit

Permalink
perf: Change Blog link from /node to /blog/ (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
halkeye committed Mar 19, 2024
2 parents 56ed542 + 8010fce commit 2b8bb3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jio-footer.ts
Expand Up @@ -92,7 +92,7 @@ export class Footer extends LitElement {
<a href=${relOrAbsoluteLink('/download/', this.property).href}>${msg('Downloads')}</a>
</li>
<li>
<a href=${relOrAbsoluteLink('/node/', this.property).href}>${msg('Blog')}</a>
<a href=${relOrAbsoluteLink('/blog/', this.property).href}>${msg('Blog')}</a>
</li>
<li>
<a href=${relOrAbsoluteLink('/doc/', this.property).href}>${msg('Documentation')}</a>
Expand Down
2 changes: 1 addition & 1 deletion src/jio-navbar.ts
Expand Up @@ -92,7 +92,7 @@ export class Navbar extends LitElement {
{label: msg("Spinnaker"), link: "https://www.spinnaker.io/"},
];
const menuItems = [
{label: msg("Blog"), link: "/node"},
{label: msg("Blog"), link: "/blog/"},
{label: msg("Success Stories"), link: "https://stories.jenkins.io/"},
{label: msg("Contributor Spotlight"), link: "https://contributors.jenkins.io/"},
{
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Navbar.stories.ts
Expand Up @@ -65,7 +65,7 @@ export const SamePropertyActiveToplevelLink: StoryObj<Navbar> = {
name: "Active link outside dropdown",
args: {
property: 'https://www.jenkins.io',
locationPathname: '/node/'
locationPathname: '/blog/'
},
play: async ({canvasElement}) => {
expect(deepQuerySelectorAll(canvasElement, '.active')).toHaveLength(1);
Expand Down

0 comments on commit 2b8bb3a

Please sign in to comment.