GW2Raidar / gw2raidar

A log parsing website for Guild Wars 2 combat logs
http://www.gw2raidar.com
GNU General Public License v3.0
20 stars 14 forks source link

Fix link href display values #329

Closed Throne3d closed 5 years ago

Throne3d commented 5 years ago

Currently, links are enabled using the ractive framework, which acts in an onclick handler, and then transitions the DOM between page states using javascript. Links, accordingly, have href values of #, since everything's done in the onclick handler.

Unfortunately, this has two main side effects:

This patch addresses that by giving relevant links accurate href values, so that when the onclick handler doesn't take over, they still work. This couldn't be done for the logout links, however, as there seems to be no non-API route for that to fall back to. As part of this process, it renames the old function, URLForPage, to getPageURLFromObject, to make clearer the difference between it and some new functions.