#808 - Redirect fix - switched href to routerLink#820
Conversation
WalkthroughThe update modifies the navigation mechanism in an Angular HTML template. The anchor tag in the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant A as Anchor Element
participant R as Angular Router
participant V as View Component
U->>A: Click on navigation link
A-->>R: Triggers navigation via routerLink
R->>V: Loads the target component (view)
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/app/item-page/edit-item-page/item-license-mapper/item-license-mapper.component.html (1)
29-32: Switching to routerLink for internal navigation is a good move.
Replacing the traditionalhrefwith[routerLink]leverages Angular’s client-side routing and avoids full page reloads. Please ensure that the concatenation ofgetLicensesModulePath()andgetLicensesManageTablePath()produces the correct route. As an optional improvement, consider using the array syntax (e.g.[routerLink]="[getLicensesModulePath(), getLicensesManageTablePath()]") if your routes contain multiple segments or need clearer separation.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/app/item-page/edit-item-page/item-license-mapper/item-license-mapper.component.html(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: dspace-angular / docker-build (linux/amd64, ubuntu-latest, true)
- GitHub Check: tests (18.x)
- GitHub Check: tests (16.x)
|
To test changes on localhost, it is helpful to add these lines from config.example.yml with |
Testing
To test changes on localhost, it is helpful to add these lines from config.example.yml with nameSpace: /repository to config.yml