marmelab / marmelab/ng-admin

listView.url override not working

Open
#871 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
3.9k
Forks
703
PR merge metrics
No merged PRs in 30d

Description

As described in the view customisation doc, I over-rode the url function for the view to hit a specific URL
:
mySku.listView().url(function(entityId) {
return '/sku/';
});

However this is not working. I tried setting a breakpoint inside the callback; that also is never reached..
What am i doing wrong?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the view customisation documentation and the listView.url usage shown in the report. Trace how the callback is registered and when the view URL is requested, then reproduce the missing breakpoint with the reported snippet. Done when an overridden callback is invoked and the resulting URL is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.