I added a redirect for my node via "Add URL redirect to this node" that is in the node edit form. The redirect works and is listed in the site config but when I go back into the node edit form for my node it says that No URL redirects available.

CommentFileSizeAuthor
#4 Capture2.PNG100.44 KBpatty.fresonke

Comments

dave reid’s picture

Did you refresh the node edit page?

kim.le’s picture

Yes. I cleared by browser cache, refreshed the page, use a different browser, but it still doesn't list a redirect in the node edit form when I go into the article to edit.

patty.fresonke’s picture

Anyone have any insight on this problem??

See edit below

patty.fresonke’s picture

StatusFileSize
new100.44 KB

I was clicking around and I happened to change the title of an article, thus changing the alias...so, having "Automatically create redirects when URL aliases are changed." enabled in admin/config/search/redirect/settings, it created a redirect from the old alias to the node/154 path. That shows up in the node edit form. But creating a redirect from the node/29 to http://www.amazon.com, for example, will work properly but it will not show up on the node edit form page. I attached a screen shot to hopefully help with my description.

EDIT: I was given this issue by someone working on it before me, and was under the assumption that it was the correct module for the job, but after looking into it more, it appears they were wrong and this is for internal redirects - more or less. Not for redirecting to external URLs. It technically works but will not pull that data into the table to display on the node edit form. (A big usability issue when looking at it for the 'external url' use case).

The description on the module page is slightly vague as it states it features a "Common API for loading, saving, and deleting redirects". Not really specifying that it's not meant for external redirects. And when looking at the node edit form 'helper' text it states "The following are a list of URL redirects that point to this node" implying that it is only meant for alias redirects and the like. Which would explain why redirects that are pointing externally do not show up in that table.

So whether this is working as it was designed or if the 'pointing a node to an external URL' portion is just not there yet, I think needs to be answered by a maintainer for this module.

dave reid’s picture

Status: Active » Fixed

Correct, the module in the UI does not encourage people to be creating redirects from existing valid content that points elsewhere. The UI help text clearly states that it lists/creates redirects 'to' the item, not 'from' the item like you have done. The API itself does not make assumptions and can be used for both internal and external redirects. If you have suggestions for improvements to the help text to help clarify this, please re-open or file a new issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.