LocalCrag / LocalCragApp

Deploy your local alternative to the well known online climbing guide platforms with LocalCrag to keep control over all data in the crags you are developing!
GNU Affero General Public License v3.0
8 stars 1 forks source link

More links #490

Open BlobbyBob opened 4 weeks ago

BlobbyBob commented 4 weeks ago

Currently, a lot of the internal navigation is handled by click event handlers. Ideally, all of those references should be proper <a href> links, so you can use browser features like "Open in a new tab" or "Copy link". To keep the SPA feeling, normal click events should ignore the default browser link behavior and replace it with internal routing.

This works already fine for the breadcrumb and the line links for topo images but not for the main menu and crag/sector/area lists.

dorthrithil commented 3 weeks ago

In the gallery branch I just implemented the entityLink pipe. You can use it like so <a [routerLink]="entity | entityLink">. Currently it supports creating links for Lines, [...], Crags and Users.