Skip to content

WIP: (Alternative) Added Anchors to Bachelor / Master and Semester Headings

Lukas Möller requested to merge add-anchors-v2 into staging

Alternative to !21 (merged)

Requires !23 (merged) (@types/react-router-hash-link is incompatible with current react types)

Uses react-router-hash-link to implement #60 (closed)

Isn't quite that clean as the package doesn't handle the case where a user visits the page with a hash link (which is the primary use case). This behavior is emulated using a top level "fake link" that is "pressed" when constructed. I apologize for the "fix" being that ugly.

Smooth scrolling behavior works in Chrome, but doesn't in Safari. I am open to suggestions on how to improve this.

Merge request reports

Loading