- Posts: 15
Joomdle 2.x Installation
Enroll into course button goes to home page after Joomla 4 migration
- D Barnhart
- Topic Author
- Offline
- New Member
-
Less
More
2 years 8 months ago #1
by D Barnhart
Enroll into course button goes to home page after Joomla 4 migration was created by D Barnhart
I just migrated my site to Joomla 4. I am using Joomdle 2.10. When a user is logged into Joomla and goes to the course menu page and clicks on Enroll into course they are directed back to the site's home page. Looking in moodle the user is enrolled into the course. If the user then clicks the course menu page again they still see the Enroll into course button. If the user either empties/refreshes the browser's cache or logs out then logs back in and clicks on the course menu page they then see the Go to course button and when that is clicked the course opens in the wrapper like it should.
I have tried uninstalling Joomdle and reinstalling but that didn't work. All green check in system check. I've tested this both in Firefox and Chrome, both with the same result. Please help.
I have tried uninstalling Joomdle and reinstalling but that didn't work. All green check in system check. I've tested this both in Firefox and Chrome, both with the same result. Please help.
Please Log in or Create an account to join the conversation.
- D Barnhart
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
2 years 8 months ago #2
by D Barnhart
Replied by D Barnhart on topic Enroll into course button goes to home page after Joomla 4 migration
I know why the Enroll into Course button is going to the home page. For some reason, my home page menu ID is appending to the end of the Enroll into Course button link so it looks like this:
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=101
. Where 101 is my home page menu item ID. When prior to that the url for the Enroll into Course button was
mysite.com/index.php?option=com_joomdle&...course&id=18&Itemid=
Also, for the additional data source, I am using Hikashop. Weirdly, the user's profile account link from Hikashop's menu item Account is doing the same thing.
Please let me know how to fix the Enroll into Course button.
Thank you.
Also, for the additional data source, I am using Hikashop. Weirdly, the user's profile account link from Hikashop's menu item Account is doing the same thing.
Please let me know how to fix the Enroll into Course button.
Thank you.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
2 years 8 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Enroll into course button goes to home page after Joomla 4 migration
Hi.
> I know why the Enroll into Course button is going to the home page. For some reason, my home page menu ID is appending to the end of the Enroll into Course button link so it looks like this:
This seems to indicate that you have selected that menu item in Joomdle configuration in Joomla, Links behaviour section, Default Itemid option.
> If the user then clicks the course menu page again they still see the Enroll into course button. If the user either empties/refreshes the browser's cache or logs out then logs back in and clicks on the course menu page they then see the Go to course button and when that is clicked the course opens in the wrapper like it should.
Nobody has reported this before. Maybe this is related to some cache settings? Try changing Joomla cache settings and any other cache you may have (if you have anthing like Sucuri, for example).
> Also, for the additional data source, I am using Hikashop. Weirdly, the user's profile account link from Hikashop's menu item Account is doing the same thing.
Then maybe you have a bigger problem in your site, as the Hikashop link has nothing to do with Joomdle.
> I know why the Enroll into Course button is going to the home page. For some reason, my home page menu ID is appending to the end of the Enroll into Course button link so it looks like this:
This seems to indicate that you have selected that menu item in Joomdle configuration in Joomla, Links behaviour section, Default Itemid option.
> If the user then clicks the course menu page again they still see the Enroll into course button. If the user either empties/refreshes the browser's cache or logs out then logs back in and clicks on the course menu page they then see the Go to course button and when that is clicked the course opens in the wrapper like it should.
Nobody has reported this before. Maybe this is related to some cache settings? Try changing Joomla cache settings and any other cache you may have (if you have anthing like Sucuri, for example).
> Also, for the additional data source, I am using Hikashop. Weirdly, the user's profile account link from Hikashop's menu item Account is doing the same thing.
Then maybe you have a bigger problem in your site, as the Hikashop link has nothing to do with Joomdle.
Please Log in or Create an account to join the conversation.
- D Barnhart
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
2 years 8 months ago #4
by D Barnhart
Replied by D Barnhart on topic Enroll into course button goes to home page after Joomla 4 migration
Thank you Antonio for you help!
You were right, it was a bigger problem - it was my template. Everything works fine when I switch over to Cassiopeia.
You were right, it was a bigger problem - it was my template. Everything works fine when I switch over to Cassiopeia.
Please Log in or Create an account to join the conversation.
- D Barnhart
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
2 years 8 months ago #5
by D Barnhart
Replied by D Barnhart on topic Enroll into course button goes to home page after Joomla 4 migration
Actually I have another question. So it seems to be working fine with the Cassiopeia template but even with the Cassiopeia template, when a user clicks on the Enroll into Course button the course opens in the wrapper just fine but the url for this is also adding the home menu id to the end. But the wrapper opens just fine and the user can continue on with completing the course. If the user goes out of the course and then goes back to the course and clicks on the Go to Course button, the course opens fine in the wrapper, but the url for that is now adding the course menu id.
Here's the url comparison from Joomla 3 to Joomla 4
Joomla 3
Url when a user clicks on the Enroll into Course button:
mysite.com/index.php?option=com_joomdle&...course&id=18&Itemid=
Url when a user clicks on the Go to Course button:
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=422 (422 is the menu id for the course)
Joomla 4
Url when a user clicks on the Enroll into Course button (which works with Cassiopeia but not with my other J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=101 (101 is the home page menu id)
Url when a user clicks on the Go to Course button (works with both Cassiopeia and J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=422 (422 is the menu id for the course)
Is this normal behavior?
What should the url be for when a user clicks on the Enroll into Course button?
I need to know if i am having a issue with Joomla all together or just the J51 Template. Thank you.
Here's the url comparison from Joomla 3 to Joomla 4
Joomla 3
Url when a user clicks on the Enroll into Course button:
mysite.com/index.php?option=com_joomdle&...course&id=18&Itemid=
Url when a user clicks on the Go to Course button:
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=422 (422 is the menu id for the course)
Joomla 4
Url when a user clicks on the Enroll into Course button (which works with Cassiopeia but not with my other J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=101 (101 is the home page menu id)
Url when a user clicks on the Go to Course button (works with both Cassiopeia and J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=422 (422 is the menu id for the course)
Is this normal behavior?
What should the url be for when a user clicks on the Enroll into Course button?
I need to know if i am having a issue with Joomla all together or just the J51 Template. Thank you.
Please Log in or Create an account to join the conversation.
- D Barnhart
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
2 years 8 months ago #6
by D Barnhart
Replied by D Barnhart on topic Enroll into course button goes to home page after Joomla 4 migration
Ok so going down the rabbit hole even further.
The url where it appends the home page menu id at the end when the Enroll into Course button is clicked on can't be correct. I don't know why it's doing that. How do I change the Enroll into Course button link so that it goes to the correct url of: mysite.com/index.php?option=com_joomdle&...course&id=18&Itemid= (or whatever the correct url is suppose to be)? Can I change it somewhere in file manager?
The url where it appends the home page menu id at the end when the Enroll into Course button is clicked on can't be correct. I don't know why it's doing that. How do I change the Enroll into Course button link so that it goes to the correct url of: mysite.com/index.php?option=com_joomdle&...course&id=18&Itemid= (or whatever the correct url is suppose to be)? Can I change it somewhere in file manager?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
2 years 8 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic Enroll into course button goes to home page after Joomla 4 migration
The item id for the wrapper is the one called "Default Itemid". That's the one you need to set, I am not sure if you did.
> Url when a user clicks on the Enroll into Course button (which works with Cassiopeia but not with my other J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=101 k (101 is the home page menu id)
I cannot replicate the problem: I just tested and the item id was correctly set after enroling to a course in my test environment, in J4.
From here, I cannot tell you why you are getting different results, sorry. If you cannot figure it out you can write to antonio at joomdle if you want to get professional services.
> Url when a user clicks on the Enroll into Course button (which works with Cassiopeia but not with my other J51 template):
mysite.com/index.php?option=com_joomdle&...rse&id=18&Itemid=101 k (101 is the home page menu id)
I cannot replicate the problem: I just tested and the item id was correctly set after enroling to a course in my test environment, in J4.
From here, I cannot tell you why you are getting different results, sorry. If you cannot figure it out you can write to antonio at joomdle if you want to get professional services.
Please Log in or Create an account to join the conversation.