Skip to content

Multiple rendering issue with navigation menu when using nginx's proxy_pass #2178

@imvkmark

Description

@imvkmark

Describe the bug

When I use reverse proxy and MPA mode is not enabled, the navigation will display double menus after rendering.

Demo Address : https://www.weiran.tech/

image

Reproduction

Repository address: https://github.com/imvkmark/poppy-docs
Nginx configuration for the main domain:

location /docs/poppy {
    proxy_pass http://127.0.0.1:9428/;
}

Hosting address in the configuration:

server{
    listen 9428;
    server_name 127.0.0.1;
    index index.html;
    root /path/of/docs-poppy;
    gzip off;
    access_log off;
    error_log off;
}

Gzip has been turned off.

Expected behavior

Hope the menu can be rendered normally.

System Info

System:
    OS: Linux 3.10 CentOS Linux 7 (Core)
    CPU: (8) x64 Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
    Memory: 7.63 GB / 15.00 GB
    Container: Yes
    Shell: 4.2.46 - /bin/bash
  Binaries:
    Node: 16.18.1 - /usr/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions