Skip to content

bug: wrong url/not working url given in the ui #586

Description

@eznix86

Dupe Check

Describe the bug

It gave https://swetrix.org/swetrix.js which returns 404 and doesnt have https working.

<script src="https://swetrix.org/swetrix.js" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
  swetrix.init('xxx', {
    apiURL: 'https://xxxx/backend/v1/log',
  })
  swetrix.trackViews()
})
</script>

<noscript>
<img
  src="https://swetrix.xxx.xxx/backend/log/noscript?pid=xxx"
  alt=""
  referrerpolicy="no-referrer-when-downgrade"
/>
</noscript>

To reproduce

Self host v5.3.1

Expected behavior

Should work

Screenshots

Image

Regression

No, this bug or issue has existed throughout my experience using Swetrix

Additional context

Tempoarily changed the url to

<script src="https://cdn.jsdelivr.net/npm/swetrix@4.4.0/dist/swetrix.js" defer></script>

Are you using Swetrix cloud version or self-hosted?

I am using Swetrix cloud version (swetrix.com)

Does this block you from using Swetrix?

Yes, this issue prevents me from using Swetrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions