Ask coding questions

← Back to all posts
Why is my Post View Counter not Viewing?
h
RayhanADev (1948)

^ that should be an SVG that display's the amount of views this page has.
However for some odd reason it doesn't work?

My path's are:

  • /create?name=[countername]&password=[password]
  • /delete?name=[countername]&password=[password]
  • /viewcount/[countername]

Any help debugging is appreciated or if you know a solution please do tell!

Answered by Coder100 (16840) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (16840)

first off make sure replit even allows svgs to be displayed.
https://post-view-counter.rayhanadev.repl.co/viewcount/KaboomJam

or maybe markdown is broken

ok conclusion: replit doesn't like URLs without a prefix (citation needed), so add a prefix:

![](https://post-view-counter.rayhanadev.repl.co/viewcount/KaboomJam.svg)

probably because people were doing the logout 'image' which was:

![](https://replit.com/logout)