robinp7720 / Blue-Stats-Minecraft

Ever wanted a stat interface for truly everything?
http://stats.mysunland.org/
Apache License 2.0
33 stars 14 forks source link

Individual player URLs not working correctly #49

Closed o355 closed 8 years ago

o355 commented 8 years ago

At least in my server of BSM, the individual player URL is outright different versus what's on the demo site, and the difference in the URLs make it so I can't access the individual player URLs.

My URL: example.com/player/uuidgoeshere

Demo URL: example.com/?page=player&id=usernamegoeshere

Pretty sure it's a bug, but I don't know really.

o355 commented 8 years ago

Sorta self figured it out, the player URL is bugged in the SQL config, on line 27. Here's the entry:

"http:\/\/mywebsitehere.com\/{page}\/{player}\/"

And the change needed to be propagated to SQL by doing: "http:\/\/mywebsitehere.com\/?page=player&id={player}"

So I'm assuming this is an SQL glitch.

There's also the fact that by default, URLs themselves glitch too, not adding ?page={page} onto them from installation. I had to manually go about files to fix that glitch.

robinp7720 commented 8 years ago

This is not a bug but an intendented feature making use of apache rewrites. I use nginx on my server on which I have not setup these rewrites. Better page routing is coming in the future.