Developer forum

Forum » CMS - Standard features » External Auth Shortcut on Sign in Page Not Working with Relative Path

External Auth Shortcut on Sign in Page Not Working with Relative Path

Lora Vigil Dynamicweb Employee
Lora Vigil
Reply

On 9.14.5, using an External Authentication provider, adding a Sign in page Shortcut (so we can auto-redirect to the authentication provider).  

The redirect works properly when the Shortcut field contains the FULL URL, e.g. https://[domain]/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=1

We want to avoid including domain in our configurations but the redirect fails when the Shortcut field has the PATH ONLY:  e.g. /Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=1 (we tested with and without the preceding slash, same behavior occurs).  In this case, the redirect introduces "sign-in/Files/" to the URL and renders a 404.  e.g. https://[domain]/sign-in/Files/Admin/Public/Social/ExternalLogin.aspx?action=login&providerID=1 

Interestingly, when we specify a different page in the redirect (such as a product page) , it works properly with either a FULL URL or the PATH ONLY.  So the issue may be specific to this ExternalLogin page.  

Where is "sign-in/Files/" coming from - is there a config setting that can be edited to prevent this from being added to the redirect path? 

Thanks in advance.

 


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Lora,

 

I just simulated this in our test site https://dev-swiftrizzo.mydwsite1.com/ (which is on DW 9.14.6 and Swift v1.17.0) on the Inspiration menu item (top right corner) and worked as expected.

 

Some navigation related issues have been solved recently, and that is more likely a Swift bug than a DW one. What Swift version are you using?been resolved.

 

Best Regards,

Nuno Aguiar

 
Lora Vigil Dynamicweb Employee
Lora Vigil
Reply

Hi Nuno - thanks for looking into this.  The site is on v.16.0.  Would be happy to take an upgrade to see if that resolves it.  

 

You must be logged in to post in the forum