GithubHelp home page GithubHelp logo

apostrophe-redirects's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

houmark kublaj

apostrophe-redirects's Issues

Redirects don't currently work for files

Cause: Files served directly by nginx before redirects happen

Possible Solution: This probably won't be solved in this module. I think we need to do one/both of these things:

No warning for duplicate redirects

Right now there's no error or warning when you create a redirect with the same "from" path as another one. We should check if one exists and at least throw a warning message, if not deny the save.

Edit instructions in manager modal

Right now the instructions use the apostrophe-pieces default template, "You can select content to display by searching for the titles of individual Redirects, or tags." We should override that for this module to better cover its purpose.

Add a server-side event when a redirect is found

The problem to solve

There's no good way to take additional actions, such as tracking redirect use, before a redirect executes

Proposed solution

We emit a Promise event after a matching redirect is found and include both the original URL and its destination.

Alternatives

We could break up the middleware into methods more so they could be edited with the super pattern.

Additional context

This came up from a question in Discord: https://discord.com/channels/517772094482677790/517782236800745495/837372820182401024

Query strings break redirects

I don't know whether this is intentional or not, but we discovered that redirects aren't applied when URL's are requested with a query string. This caused issues for a client of ours when visitors were clicking a link on Facebook and Facebook automatically appended ?fbclid=foobar to the URL.

If there was a way to somehow specify whether query strings should be disregarded or not, that could be very useful!

Need to be able to join to pieces

We may want to configure a way for a user to redirect to a joined piece in some sort of sustainable way that doesn't involve a developer configuring this.

Right now you only have the option to join to a page or hard code a new url.

Error when creating redirect

This is new, i was using a database on mongolab.com and now switched to a local install on the server and made sure it's 2.6.

When i create a redirect the browser alerts: An error occurred. Please try again.
and the app throws this: [Error: key $or must not start with '$']

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.