apache / apache/grails-intellij-plugin

Improve named mapping support in grails

Open
#276 0 comments 0 reactions 0 assignees View on GitHub
enhancement imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

At the moment navigation from gsp template to mapping definition works with clicking cmd+b on mapping name in `link` tag:
```

```
But it doesn't work in `redirect` in controller code:
```
redirect(mapping:'pluginСard', params: [pr: request.productId, headline: plugin.getUrlHeadline()])
```
Also Find Usages on mapping name in mapping definition (in UrlMapping.groovy file) doesn't work.

---

*Imported from [IDEA-164127](https://youtrack.jetbrains.com/issue/IDEA-164127) · Type: Feature · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing Cmd+B navigation from the mapping name in the GSP `link` tag. Compare that path with the controller `redirect` example, then inspect `UrlMapping.groovy` and its mapping names for Find Usages behavior. Done means navigation works from `redirect` and Find Usages works from mapping definitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.