Skip to content

feature wanted: auto open translation docs with the current url pathname #932

@xgqfrms

Description

@xgqfrms

feature wanted

auto open translation docs with the current url pathname

current

click the translation zh-Hans link, just goto the home page

https://v3.vuejs.org/guide/composition-api-setup.html#props

=>

https://v3.cn.vuejs.org/

wanted

click the translation zh-Hans link, goto the page with the current url pathname

https://v3.vuejs.org/guide/composition-api-setup.html#props

=>

https://v3.cn.vuejs.org/guide/composition-api-setup.html#props

try failed

https://github.com/vuejs/docs-next/blob/master/src/.vuepress/config.js#L418

          {
            text: '中文',
            link: 'https://v3.cn.vuejs.org/'
          }
          {
            text: '中文',
            link: `https://v3.cn.vuejs.org${window?.location?.pathname}`,
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions