Giter Club home page Giter Club logo

Comments (1)

khalwat avatar khalwat commented on July 22, 2024

So I think there's a little confusion here, let's see if we can't clear it up.

  1. Is it possible to redirect to external urls? My company uses an external event platform that has really ugly urls, so we're in the habit of creating a shorter url that hits our Wordpress install and then sends users to the external event platform. I don't see any examples of this in your screenshots, so I wanted to confirm that this is/isn't a possibility.

Yes, Retour can redirect to any external URL.

  1. Would Retour be effective in a headless implementation of Craft? I'd love to implement Craft as a Vue application, but I'd need the same functionality mentioned above. My guess is the answer is no here, but I thought I'd ask.

If it's a headless Craft implementation, then Craft itself won't be handling the incoming URLs for routing; this is something you give up when you go with a headless CMS. So for the Vue SPA site you're discussing, Craft will never see the incoming routes, and therefor Retour will never see them either.

So no, this won't work unless you have Craft handling the routing. Which typically you would not do for an SPA.

from craft-retour.

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.