Joomla 2.5.9 Wrong redirect after Read more -> Login - redirect

I´ve a strange Joomla 2.5.9 problem where I do not know if it´s a bug or a setting issue.
Anyway my problem is I ´ve created a menu item kind "Blog List", choosed a category and set the "access" of the articles to "registered" and "show unauthorized access links" to yes. Now the user can see the articles, but is redirected to the login if he clicks "read more".
steps can be seen here (-> http://tinyurl.com/bldbvx4)
So far so good. Unfortunately the return URL for the article is not created correctly.
I ´ve created a demo installation which illustrates my problem.
http://seminare-gratz.de/Joomla_2/index.php/problem
Login:
demo
demo
If I click "Koala" and log-in in the next step, Joomla tries to redirect me to:
http://seminare-gratz.de/Joomla_2/index.php/%2FJoomla_2%2Findex.php%2Fproblem%3Fid%3D25%3Akoala
correct would be:
http://seminare-gratz.de/Joomla_2/index.php/problem/25-koala
To solve this issue I tried to cut the wrong part with htaccess (failed)
Any clue how to fix this?
Thankful for any help,
Tony

Okay, got it. For everyone else having this problem. I did a template override of:
components/com_content/views/category/tmpl/blog_item.php
and cutted the urlencode in line 149.
//$link->setVar('return', base64_encode(urlencode($returnURL)));
$link->setVar('return', base64_encode($returnURL));
with this hack it works ...

This is because you have given Access level to register so normal users are not allowed to read this article. So you kindly change access level registered to public.

Related

Can anyone help, why google page speed said "Client site redirect" and my domain has a google selected chronical "http://ww82.gooogleapi.com"?

Search Console Error
Google Page Speed Error
My domain www.tanviralamhira.com is not indexing and also I cannot even check google page speed. problems are shown in the screenshot. Can anybody help, how can I solve it?
I have tried several time to check and index request but it failed.
Had the same issue!
The problem was in the string
script src='https://ajax.gooogleapi.com/ajax/libs/jquery/1.7.35/jquery.min.js
Remove this string or change a link to jquery library and check wether redirect disappears. Interestingly, the link looks legit and thus doesnt warn one at all, nevertheless...
Good luck!

Using wget to download page within Moodle

I understand that this might be too specific but I am still quite new and having some difficulty figuring this out. So, I am hoping someone can offer up a clear command which can achieve my goal.
My goal is to download a page from Moodle. Now, this is Moodle 3.9 but I don't think this matters. The page is a wiki which is part of Moodle. So, there are child pages, links, images, etc. Now, each student gets their own wiki and it is available by URL. However, one must be logged in to access the URL or else a login page will show up.
I did review this question, which seemed like it would help. It even has an answer here which seems specific to Moodle.
By investigating each of the answers, I learned how to get the cookies from Firefox. So, I tried logging into Moodle in my browser, then getting the cookie for the session and using that in wget, according to the Moodle answer cited above.
Everything I try results in a response in Terminal like:
Redirecting output to 'wget-log.4'
I then found out where wget-log files are stored and checked the contents, which seemed to be the login page from Moodle. While I am quite sure I got the cookie correct (copy-and-paste) I am not sure I got everything else correct.
Try as I might (for a couple of hours), I could not get any of the answers to work.
My best guess for the command is as follows:
wget --no-cookies --header "Cookie: MoodleSession=3q00000000009nr8i79uehukm" https://myfancydomainname.edu/mod/ouwiki/view.php?id=7&user=160456
It just redirects me to the wget-log file (which has the Moodle login page).
I should not need any post data since once logged into my browser, I can simply paste this URL and it will take me to the page in question.
Any ideas what the command might be? If not, any idea how I could get some pretty clear (step-by-step) instructions how to figure it out?

Facebook showing page not found when sharing link

I'm sharing content from a website and every time I paste the link into Facebook it says 'page not found'.
Sometimes it works when I manually add the 'www.' in front of the URL in the address bar.
EXAMPLE
Shows page not found:
http://roundreviews.co.uk/reviews/speakers/native-union-monocle-speaker/
Works when you manually place www. in front:
www.roundreviews.co.uk/reviews/speakers/native-union-monocle-speaker/
I honestly have no I idea why it's doing this, any thoughts on how it can be fixed on the web side?
Also...
I have tried with the link below with both the www. and without yet it doesn't work with either of them, this is all very strange. This is the only link I have tried and it doesn't work with both:
www.roundreviews.co.uk/microphones/spark-digital-microphone/
Any help is much appreciated, thanks.
For me what it worked was to access the Facebook Debugger, as Goose said.
I saw that the scrape was about 12 hours ago, looks like it fetches the first time and saves it as caché or whatsoever...
What it worked for me is to debug the url, then click "fetch new scrape information" after the previous information has been shown.
Hope it works!
For those running across this today, you might find that you also need to verify your domain and link it to your page.
To do this you need to
Set up a Facebook Business Account
Add your page to the business account
Verify your domain (using DNS TXT or adding a page facebook gives you)
Under domains, connect your page as an asset of that domain

Page requested not found

I recently created a new app and added it to an existing page using the following:
http://facebook.com/add.php?api_key=APP_ID&pages=1&page=PAGE_ID
Now randomly when i am logged in and go to my page i get the following error:
The page you requested was not found.
You may have clicked an expired link or mistyped the address. Some web addresses are case sensitive.
Has anyone else found the same issue?
I have been reading some posts and i think it might have to do with the way the app was added to my page. Not entirely sure though.
HELP :)
I don't think it's connected to how you added it but here is another option to add app to page:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&display=popup&next=YOUR_URL
Change YOUR_URL with the url in app settings Page Tab URL.

What are the requirements for the next parameter for the add tab dialog?

It is not very clear as to what rules the next parameter need to follow in order to be valid with the add tab dialog.
I wish the documentation was more clear. As through trial and error I have worked out enough for just now but I want to know if you need to setup the apps as website apps or if you need the domain setup, which requires being setup as a website app. Also it appears you can specify a subdomain with no issues?
It's just not clear at all.
Can we please have clearer documentation? I realise I maybe posting this in the wrong place as well, so if this should be filed somewhere else can someone please let me know.
Thanks!
Stefan
Next is the url where you are redirect after you have added the tab
example:
next="https://www.yourdomain.com/add_tab.php"