Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MuirisOG 382 posts 1284 karma points
    Mar 03, 2017 @ 11:00
    MuirisOG
    0

    Problem from my Custom Backoffice Application

    Hi

    I'm on 7.4.3 and have written a new backoffice section / application.

    I've put a link in my edit.html to the content section, which works, and a link to the users section which doesn't.

    Here's the link that works:

    <a class="btn" ng-href="#/content/content/edit/{{node.Id}}">
       Show
    </a>
    

    and here's the link that doesn't:

    <a class="btn" ng-href="#/users/users/edit/{{node.WriterId}}">
       {{userName}}
    </a>
    

    The error I get is

    umbraco request error: the url a 404 (not found) 
    returned views/users/edit
    

    ... which seems to be looking for "views/users/edit" and not "users/users/edit"

    Any help would be appreciated.

    Thanks

  • Steven Harland 78 posts 518 karma points c-trib
    Mar 03, 2017 @ 11:13
    Steven Harland
    100

    Hi MuirisOG,

    The deep link to the user edit form is slightly different because it is presented within a frame. Try the following:

    <a class="btn" ng-href="#/users/framed/%252Fumbraco%252Fusers%252FeditUser.aspx%253Fid%253D{{node.WriterId}}">
    

    Steven

  • MuirisOG 382 posts 1284 karma points
    Mar 03, 2017 @ 11:22
    MuirisOG
    0

    Hi Steven,

    that has done the trick.

    I thought I could use #/users/users/edit because this is how the links work in the users section, and I figured it would work the same way as the content section.

    I can see the link changes in the address bar after you have clicked it.

    many thanks

    Muiris

Please Sign in or register to post replies

Write your reply to:

Draft