mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00: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 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", {
|
Discourse.ajax("/clicks/track", {
|
||||||
data: {
|
data: {
|
||||||
url: href,
|
url: href,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user