Giter Site home page Giter Site logo

Comments (4)

esafwan avatar esafwan commented on August 19, 2024

@clowNay Please go through this link. You may find some clues. Make sure you read the discussion till the end. I think, you are having a similar issue.

from angular-drupal.

ovidius72 avatar ovidius72 commented on August 19, 2024

I have had similar issues. I followed what @esafwan suggested with no luck. So I've tried changing the request path from /?q=services/session/token to /service/session/token on line 47 andremoving the "/?q=" on line 17, just leaving it as "/". After that all worked great. Maybe enabling CleanURLs can break drupal_angular, I don't know..

from angular-drupal.

signalpoint avatar signalpoint commented on August 19, 2024

It sounds like we need a config option to let the developer specify whether clean urls are enabled or not in the app. https://github.com/easystreet3/angular-drupal/blob/7.x-1.x/src/angular-drupal.js#L17

There are a few other places where ?q= is explicitly used, so we'd need to catch those as well.

from angular-drupal.

ovidius72 avatar ovidius72 commented on August 19, 2024

In a Drupal 7 websites, if you visit the page admin/config/search/clean-urls/check you will get a json object that just reports { status:true} if Clean URLs is enabled. Maybe it could be used in the config function to properly set the query path. It doesn't require to be registered the site to check the status.
I'm not sure if it's the same for Drupal 6 and 8.

from angular-drupal.

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.