I created several Smart Docs pages to document several methods in my API. However, when going to the URL for one of those pages, I receive an error that says "This page has a redirect loop." The page eventually does redirect to my page, but with the following notification displayed across the top: "Oops, looks like this request tried to create an infinite loop. We do not allow such things here. We are a professional website!"
I was going to remove this particular Drupal node via the admin interface and then recreate it from scratch. However, I can't find any option for deleting methods and/or resources.
Is there a way to fix this redirect error? Or, is there a way to delete Drupal nodes via the admin pages?
Thanks for your help,
Michael
Solved! Go to Solution.
SmartDocs creates a drupal node for each method. You can find it in the Content section "/admin/content".
After deleting the Drupal node(s) I recommend using SmartDocs to re-render those nodes.
1) Click on your SmartDocs model from the top admin menu or use this link
https://YOURSITE.com/admin/smartdocs/models/{{modelname}}/revisions/{{number}}
2) Select methods to render and click the Update button.
You can find more information on Smartdocs here:
http://apigee.com/docs/developer-services/content/using-smartdocs-document-apis
In addition: Sometimes Drupal automatically adds redirects--to the very same node in some cases! (I know. Tremendously helpful.) A quick & dirty fix to the infinite loop issue is to Edit Drupal Node on the topic, scroll down to the URL Redirects section, and delete the offending redirect.
SmartDocs creates a drupal node for each method. You can find it in the Content section "/admin/content".
After deleting the Drupal node(s) I recommend using SmartDocs to re-render those nodes.
1) Click on your SmartDocs model from the top admin menu or use this link
https://YOURSITE.com/admin/smartdocs/models/{{modelname}}/revisions/{{number}}
2) Select methods to render and click the Update button.
You can find more information on Smartdocs here:
http://apigee.com/docs/developer-services/content/using-smartdocs-document-apis
Great. Thanks for your help Cesar! This is just what I needed.
In addition: Sometimes Drupal automatically adds redirects--to the very same node in some cases! (I know. Tremendously helpful.) A quick & dirty fix to the infinite loop issue is to Edit Drupal Node on the topic, scroll down to the URL Redirects section, and delete the offending redirect.
Thanks Floyd. I'm new to Drupal so this info is a great help. Thanks for sharing!
Just one question... I'm just not sure how to navigate to this page (pictured in your post). Can you tell me the path from the admin menu?
@Floyd Jones , You are right. It was due to URL redirects associated with node that causes infinite loops. Editing Drupal node should solve the issue normally. But Unfortunately, Smartdocs node edit page has been redirected to custom edit form in SmartDocs module. I am not sure the reason behind it and you won't see above options since smartdocs edit screen is not node edit page actually. There is a backlog in the smartdocs issue queue regarding this. @Michael McPadden Since, We are not providing access to node/edit screen of smartdocs content pages you may not see above configuration options for SmartDocs nodes. Answer provided by @cesar should solve the issue.