link not working by clicking, only work by “Open link in new tab” command

后端 未结 8 1771
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 11:21

I meet this interesting situation:

8条回答
  •  遥遥无期
    2020-12-20 12:23

    Correctly given by Darren, it is definitely some javascript code that is sending an AJAX request (post or get) that is preventing the link from functioning as you would expect.

    However, if you've used an external resource, it might be difficult to correct the error in the min files.

    I suggest use a jquery onclick event inline to circumvent the AJAX call

    Foo

    You could additionally use window.open('https://www.foo.bar/culrsteam', '_blank') like with target='_blank'

提交回复
热议问题