I get the following error:

The destination "/mnt/foobar.xls" URL/path does not exist.

This path is however reachable, but it's not a path which is being served by Drupal. It's a redirect to a mounted disk, so it's not an actual file in that relative directory.

Moreover the redirect module lets me input this redirect manually without any errors.

It would be nice to have an option to skip this destination check.

Comments

Sneakyvv’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB

Attached patch which adds such option to the import form.

farse’s picture

thanks!

this is also relevant for migrating old non-drupal multilingual site links as the old language links in my case give no indication that it is a non-english page (ie. from: 3267/Espa_ol/Servicios/) , so essentially I have had to create all the redirects as 'english' redirects and then hardcode the language code into the redirect ie.(to: 'es/taxonomy/term/1')

azovsky’s picture

Thank you! It is working good.

Sneakyvv’s picture

Status: Needs review » Reviewed & tested by the community

I'm going to RTBC this now.

omniat’s picture

Thanks works great and very useful.

osopolar’s picture

Just in case, someone wants to create a redirect to a path which gets already redirected, have a look at the issue #2012190: Add support for "To URLs" pointing at redirects.

stephaneq’s picture

I confirm too, it's working for my case (same as farse, old multilingual website to redirect)