mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
BUGFIX: link to attachments when using S3
This commit is contained in:
parent
d0c55010aa
commit
e6b4ba8ad6
|
@ -85,7 +85,7 @@ Discourse.ClickTrack = {
|
|||
}
|
||||
|
||||
// If we're on the same site, use the router and track via AJAX
|
||||
if (Discourse.URL.isInternal(href) && !href.match(/\/uploads\//i)) {
|
||||
if (Discourse.URL.isInternal(href) && !$link.hasClass('attachment')) {
|
||||
Discourse.ajax("/clicks/track", {
|
||||
data: {
|
||||
url: href,
|
||||
|
|
Loading…
Reference in New Issue
Block a user