Skip to content

With PJAX, the page will refresh once after closing the image's fancybox window #1059

@leirock

Description

@leirock

I agree and want to create new issue


Expected behavior

With PJAX, the page will not refresh after closing the image's fancybox window

Actual behavior

see the next part (Steps to reproduce the behavior)

Steps to reproduce the behavior

After adding PJAX support:

  1. visit my pjax test site
  2. click menu item "关于更多"
  3. click the QRcode image to open fancybox window
  4. click "X" to close fancybox window
  5. the page will refresh once

Node.js and NPM Information

v12.1.0
6.10.0

Package dependencies Information

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "hexo": "^3.9.0",
    "hexo-abbrlink": "^2.0.5",
    "hexo-deployer-git": "^1.0.0",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-indexed": "^0.1.1",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-marked": "^1.0.1",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.3.3",
    "image-size": "^0.7.4"
  }
}

Hexo Information

Hexo version

hexo: 3.9.0
hexo-cli: 2.0.0
os: Darwin 18.7.0 darwin x64
node: 12.1.0
v8: 7.4.288.21-node.16
uv: 1.28.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 72
nghttp2: 1.38.0
napi: 4
llhttp: 1.1.1
http_parser: 2.8.0
openssl: 1.1.1b
cldr: 35.1
icu: 64.2
tz: 2019a
unicode: 12.1

Hexo Configuration

https://github.com/lei2rock/blog/blob/pjax/_config.yml

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

https://github.com/lei2rock/blog/blob/pjax/source/_data/next.yml

Other Information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions