Code Monkey home page Code Monkey logo

Comments (7)

markdaugherty avatar markdaugherty commented on May 25, 2024

Please provide additional details on the error you are experiencing.

from aem-groovy-console.

Buuhuu avatar Buuhuu commented on May 25, 2024

So assume that your CQ instance is running on org.apache.felix.http.context_path="/foo", then all links should be prefixed with "/foo". Having a look at your console.js (and testing your cool tool in an instance running with context path), I mentioned that these prefix is missing in: console.js line 113, line line 179 and line 197. This results in an 404 for any action made.

from aem-groovy-console.

markdaugherty avatar markdaugherty commented on May 25, 2024

Thanks. I will review and investigate a possible solution.

from aem-groovy-console.

Buuhuu avatar Buuhuu commented on May 25, 2024

Since CQ 5.3 there is CQ.shared.HTTP.getContextPath(). See http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.shared.HTTP.

from aem-groovy-console.

markdaugherty avatar markdaugherty commented on May 25, 2024

Dirk, I have made a few changes to support context paths, but I am not sure how best to test in CQ. Can you describe how to configure a local CQ instance running with a context path so I can verify the changes? Thanks and sorry for the delayed response.

from aem-groovy-console.

Buuhuu avatar Buuhuu commented on May 25, 2024

Create a node in the following structure:
/
/apps
/apps/foo
/apps/foo/config
/apps/foo/config/org.apache.felix.http
[jcr:primaryType = sling:OsgiConfig]
[org.apache.felix.http.context_path = "/context"]

Afterwards your application is reachable through the given contextpath.

from aem-groovy-console.

Buuhuu avatar Buuhuu commented on May 25, 2024

I revviewed the code you commited and it looks good so far, thanks for applying these changes.

from aem-groovy-console.

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.