Giter Club home page Giter Club logo

Comments (2)

ajrbyers avatar ajrbyers commented on September 26, 2024 1

Thanks for investigating this @joemull. The supporters issue is the priority here, perhaps either @mauromsl or I can take a look a this in the next few days if we get a chance. Otherwise we can push this into 1.6.

from janeway.

joemull avatar joemull commented on September 26, 2024

Thanks for logging this issue, @mauromsl.

I just tested this on an older version of Janeway, 1.5.0, and I could reproduce it there. I have also compared the Git diff between 1.5.0 and 1.5.2 to double check, for my own sanity, that I have not introduced any changes to core Janeway on the way to building the Hourglass theme that would change the URL resolution of nav items.

These things tell me it is an older bug. I believe the culprit is links formed like this, as they have been since 2018:

https://github.com/BirkbeckCTP/janeway/blob/70e0ebd11ce05173d5b36639f77cd60849af32c4/src/themes/OLH/templates/press/nav.html#L19

These templates should not be introducing a hardcoded forward slash as that results in a double slash when combined with a leading slash on NavigationItem.link, signalling to the browser that what follows is a netloc, not a path.

These templates should also be using the newer NavigationItem.url method, not NavigationItem.link. The url method is more robust as it calls the helper functions in utils.logic.

How would you like to proceed? As it is an older issue, we won't be changing users' expectations with 1.5.2. I could try to clean up these old templates ASAP, but Caroline is keen to see the supporter data merged. What's your sense of the priorities here? @ajrbyers hoping to get your thoughts as well. Thank you both!

from janeway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.