Skip to content

[Feature]: Custom the href link of logo #2952

@DarylLi

Description

@DarylLi

What problem does this feature solve?

Hi there, since I set my home page by conventional route, my home page is created in myproject/dist/mika-press/main.md

when I click to the logo

Image

the href link I got is to jump to the 'index.html' that cause a 404 error display.

Image

so if we could custom the logo link with defineConfig method ?

What does the proposed API look like?

import { defineConfig } from 'rspress/config';

export default defineConfig({
logo: {
dark: '/logo-dark.png',
light: '/logo-light.png',
href: '/xxx(html)?'
},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions