jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

Authorise Craft button doesn't work if Craft is located in a subdirectory. #32

Closed cloudgrayau closed 3 years ago

cloudgrayau commented 3 years ago

Line 80 in /src/templates/settings/index.twg: window.location.href = '/actions/craftagram/default/handle-auth?client_id=' + $appId;

I would recommend changing this to: window.location.href = '{{ siteUrl }}actions/craftagram/default/handle-auth?client_id=' + $appId;

jsmrtn commented 3 years ago

@cloudgrayau Just to clarify, you mean in such a way that https://www.website.com is not Craft, and instead https://www.website.com/folder contains Craft?

cloudgrayau commented 3 years ago

Yep, that’s right.

-- Aaron Gray

On 29 October 2020 at 7:08:21 pm, Joshua Martin (notifications@github.commailto:notifications@github.com) wrote:

@cloudgrayauhttps://github.com/cloudgrayau Just to clarify, you mean in such a way that https://www.website.com is not Craft, and instead https://www.website.com/folder contains Craft?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/scaramangagency/craftagram/issues/32#issuecomment-718511470, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKNWJ27BBFHTYQKKWFYL5O3SNEWILANCNFSM4TDCZVRA.