Forum - Anchor Scrolling Primo VE

  • This topic has 0 replies, 1 voice, and was last updated 3 weeks ago by ZHAW HSB.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #67532
    ZHAW HSB
    Participant

    Hello

    We have a Primo VE System on which we want to implement anchor scrolling, if a specific link is clicked (new Page), for example:

    // Target _self or _blank?
    !a href=”/path/to/another/page#ID-of-Section” target=”_self” rel=”noopener noreferrer”>
    Link Name
    !a

    What I did in main.js (in the customization Package) is the following in app.run(); :
    $rootScope.$on(‘$routeChangeSuccess’, function(newRoute, oldRoute) {
    if ($location.hash()) {
    $location.hash($routeParams.scrollTo);
    $anchorScroll();
    }
    });

    This seems not to work.

    The exact link of the target is:

    https://<HOST>/discovery/static-file/help?vid=INSTITUTION:CODE&lang=<LANG>#ID-OF-SECTION

    How would you solve this problem?

    Thanks in advance for your suggestions.

    Best Regards

    Sam

    • This topic was modified 3 weeks ago by ZHAW HSB.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.