solidjs / solid-router

A universal router for Solid inspired by Ember and React Router
MIT License
1.13k stars 143 forks source link

Behavior of anchor tag on v0.10.x #319

Closed hugomcm closed 9 months ago

hugomcm commented 9 months ago

Describe the bug

When migrating to v0.10.x, realized that the achor tag <a> doesn't have the same behavior as on v0.9.x. It's not doing a server call as expected. Seems like is just working as <A>. For example, I was counting on a GET request <a href="/logout">Logout</a> to do a logout on the server.

Your Example Website or App

-

Steps to Reproduce the Bug or Issue

Create and click an <a> tag

Expected behavior

Expected <a> tag to do a server call

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Chromium
  • Version: 119.0.6045.199

Additional context

No response

Brendan-csel commented 9 months ago

Try <a href="/logout" target="_self">Logout</a> or see explicitLinks in README