- Posts: 91
Double slash in COURSE_URL
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
13 years 10 months ago #1
by Fabio Ballor
Double slash in COURSE_URL was created by Fabio Ballor
Hi Antonio,
The url that is sent after purchase (COURSE_URL) is a double slash in the address
www.XXXXX.it//index.php?option=com_joomd...ge_type=course&id=10
where can I fix it?
thanks
Fabio
The url that is sent after purchase (COURSE_URL) is a double slash in the address
www.XXXXX.it//index.php?option=com_joomd...ge_type=course&id=10
where can I fix it?
thanks
Fabio
The topic has been locked.
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
13 years 10 months ago #2
by Fabio Ballor
Replied by Fabio Ballor on topic Re: Double slash in COURSE_URL
I changed the line 1773 of the file /administrator/components/com_joomdle/helpers/shop.php
$url.'index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id='.$course_id;
is that correct?
thanks
$url.'index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id='.$course_id;
is that correct?
thanks
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
13 years 10 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Re: Double slash in COURSE_URL
Hi.
Do you have / at the end of Joomla URL in Joomdle auth plugin in Moodle?
I cannot reproduce the problem in my installation.
Do you have / at the end of Joomla URL in Joomdle auth plugin in Moodle?
I cannot reproduce the problem in my installation.
The topic has been locked.
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
13 years 10 months ago #4
by Fabio Ballor
Replied by Fabio Ballor on topic Re: Double slash in COURSE_URL
Hi,
No, I didn't put a slash at the end of Joomla URL in Joomdle auth plugin in Moodle.
But there are two slashes!
Fabio
No, I didn't put a slash at the end of Joomla URL in Joomdle auth plugin in Moodle.
But there are two slashes!
Fabio
The topic has been locked.
- Fabio Ballor
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 91
13 years 10 months ago #5
by Fabio Ballor
Replied by Fabio Ballor on topic Re: Double slash in COURSE_URL
Hi,
I noticed an interesting thing, I don't know if you can help.
I noticed that when I authorize a course from BE of hikashop software, in manual, the problem does not occur.
While when I buy with paypal, then the email is sent automatically after purchase, there is the double slash

Thanks
Fabio
I noticed an interesting thing, I don't know if you can help.
I noticed that when I authorize a course from BE of hikashop software, in manual, the problem does not occur.
While when I buy with paypal, then the email is sent automatically after purchase, there is the double slash

Thanks
Fabio
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
13 years 10 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Double slash in COURSE_URL
That helps, thank you.
I fixed it by adding:
before
I fixed it by adding:
Code:
$url = trim ($url, '/');
Code:
$url = $url.'/index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id='.$course_id;
The topic has been locked.