Ask your own question, for FREE!
OpenStudy Feedback 16 Online
OpenStudy (abhisar):

Why hyperlinks are not working ?

OpenStudy (abhisar):

\(\href{openstudy.com/code-of-conduct}{\large \sf Click}\) Not working !!

OpenStudy (preetha):

Ashisar, what link?

OpenStudy (kaylee_td):

Yes! Every time I see those, I try to click and it fails to work!

thomaster (thomaster):

Seems like they disabled the \href function in mathJax. Probably to prevent misuse.

OpenStudy (abhisar):

@Preetha , i used to guide new users by using \href function in mathjax. But from few days it's not working.

OpenStudy (abhisar):

\(\color{blue}{\text{Originally Posted by}}\) @thomaster Seems like they disabled the \href function in mathJax. Probably to prevent misuse. \(\color{blue}{\text{End of Quote}}\) is due to the issue which @CyberShadow had raised ?

OpenStudy (cybershadow):

Yeah @Abhisar Allowing hyperlinks leads to huge cross side scripting vulnerabilities. Thats why i guess, they would have disabled it. Even tho i proposed using the safe mode which would just disable the javascript links and allow the normal links.... but seems like they have disabled the href function completely.

OpenStudy (abhisar):

yeah i think it would be better if they just disable the javascript integration. Hyperlinks are very useful. I hope they soon it fix.

OpenStudy (abhisar):

*soon fix it

thomaster (thomaster):

@c0decracker

OpenStudy (anonymous):

Actually we did enable safe mode. We'll check if it's possible to have normal links working with that though...

OpenStudy (abhisar):

Oh..i see..that would be very nice. Thnx for responding :)

OpenStudy (dannyrod2000):

on time they suspended someone by those link because they tricked a person and got banned for clicking those

OpenStudy (dannyrod2000):

?

OpenStudy (anonymous):

\( \href{ http://openstudy.com/code-of-conduct }{\large \sf Click} \) - smth happen ( \( \href{http://mathjax}{\large \sf ThisWorks} \) \( \href{https://mathjax}{\large \sf ThisWorksHttps} \)

OpenStudy (dannyrod2000):

it does work, but the website doesn't exists

OpenStudy (dannyrod2000):

@NACILON

thomaster (thomaster):

hm it works when using http in front of the link, but it ends op being rendered as a normal link in the code text. \(\href{ http://google.com }{google}\) \(\href{ https://google.com }{google}\) \(\href{//google.com}{google}\)

OpenStudy (cybershadow):

Ah i see @c0decracker .Safe mode has been enabled. And Safe mode will not render any other links which doesnt start with "http" or "https" or "file" protocol. Prefixing http should do it.

OpenStudy (cybershadow):

\(\href{ http://google.com }{google}\)

OpenStudy (cybershadow):

Problem seems to be in the server side.... because when i use \(\href{ http://google.com }{google}\) It shows the latex link in the preview but as soon as i m posting it it apperas as a normal link. Os's server side code parses everything that stars with http:// as a <a> element thats why the syntax doesnt work. Skipping parsing of any code that starts with a latex command should fix it.

OpenStudy (abhisar):

@cybershadow but i think there is a drawback of skipping it too. in that case plain links posted will not be rendered as link but just as simple text.

OpenStudy (cybershadow):

No @abhisar , I m talking about just not parsing the links inside a latex command.... we can write a condition that if the string before the http:// is "href{" then nothing should be parsed and in other cases it should be rendered as a link.

OpenStudy (anonymous):

\( \href{http:///openstudy.com/code-of-conduct}{\large \sf Click} \)

OpenStudy (cybershadow):

That was smart @NACILON Using three "\" seems to do it. Great work.

OpenStudy (anonymous):

It is Safe mode for MathJax, so it only allows to use http://, https:// & file://. But link should contain one additional / to work

OpenStudy (abhisar):

ah i see @CyberShadow !

OpenStudy (abhisar):

\(\href{http:///www.google.com}{\sf Click}\)

OpenStudy (cybershadow):

Well not really, Two / should work just fine. But Os server side transforms anything that starts with http:// into a link and when we add additional / it doesnt match the os server side regex and is being rendered as a regular text

OpenStudy (cybershadow):

well then , That was really a good fix @NACILON We get the links back now. Tho OS should still fix one more vuneralbity i.e. Logout Link " http://openstudy.com/session/logout " Hope that they fix it and then we are vuneralbity free

OpenStudy (abhisar):

\(\href{http:///openstudy.com/session/logout}{\sf \huge Logout}\)

OpenStudy (abhisar):

Ahh..yes i agree @CyberShadow !

OpenStudy (abhisar):

and that was really smart @NACILON !

OpenStudy (abhisar):

@c0decracker

thomaster (thomaster):

logout links are merely a nuisance... no need to waste time and effort to fix that. There are a lot of bigger problems, like the signup form which is almost verification-free. 10 times higher priority.

OpenStudy (dannyrod2000):

people also tricked people by playing a song. They almost gave me a heart attack! @thomaster

OpenStudy (dannyrod2000):

they put a Harlem Shake song :P

thomaster (thomaster):

yes that script with the song won't work anymore now.

OpenStudy (dannyrod2000):

lol good :)

TheSmartOne (thesmartone):

Cool now I know how to attach a hyper link in OS.. :)

TheSmartOne (thesmartone):

@Abhisar Thanks for making that log out button. I clicked on it and I logged myself out while viewing the post. It could make a good prank if you labeled it as code of conduct or something... lol :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!