Anchors in URL messed up
So my forum is at http://www.example.org/forum
It's embedded with SSO from forum.example.org which is a subdomain defined to link to example.org/vanilla
So when I call http://www.example.org/forum it loads the forum in embedded mode and everything is fine. When I click a link I see the correct page with anchor (e.g. #latest) for a second, then it moves back to top of the page and the url in address bar is changed in a strange way. I already deleted my own htaccess in my main folder - no change.
That's how the forums url looks like after 1 click: http://www.example.org/forum#/discussion/1/bam-you-ve-got-a-sweet-forum
As you can see anchor is lost/deleted and the url is messed up.
Any ideas on that? Tried this and that for one hour now and quite tired now. Spent too much time trying to get file upload working properly with no success. Shouldn't Vanilla be simple and easy? I'm a little disappointed at the moment.
Comments
You are using embedded?
grep is your friend.
Personally I suggest avoiding embedded if you can, you can get better results if you style your
default.master.tpl
to fit in. Obviously not always possible with complex menus in header and footer.grep is your friend.
Otherwise differentiation is under-rated. Sections of a site don't have to look identical, it isn't a crime.
grep is your friend.
Yes I'm using embedded. I really like the idea of having my main menu wrapped around it. That's also the reason why I finally managed to get SSO work properly (first success, hurray). Now I'm a bit confused why suggested things don't work (assuming it's not my fault).
I'll try a second installation without a subdomain but I really want to use it because of the Safari problem mentioned in official documentation.
Today I'm really thinking of waiting for 2.2 instead of starting the forum now. It seems there are too many unsolved problems with 2.1 at the moment, maybe because 2.2 is in focus now.
SSO really has nothing to do with embed API, these two thing are frequently confused.
grep is your friend.
@Guido Richter
I'd suggest trying to get 2.1 working the way you want.
Vanilla is being run, self-hosted, successfully on an awful lot of sites.
It may be that you are finding bugs, but it could just as easily be that issues are due to the nature of your set-up.
I don't think there are many, if any, general unsolved 'issues' with 2.1
what safari problem are you referring to?
grep is your friend.
@whu606 I wouldn't go that far, vanilla is still in transition, like any project it will have issues. It is is true it perfectly possible to run a vanilla site successfully.
grep is your friend.
@x00
Yes, what I meant was that, in general, people get Vanilla up and running without any great difficulty, so avoiding setting up 2.1 on the assumption that 2.2 will make the difference may not be the best option.
Oh a totally agree, I had no idea he was thinking of staying on 2.0
grep is your friend.
I should sharpen my reading comprehension.
grep is your friend.
@x00
I think the OP is trying to set up 2.1 from new, but is having issues, and wondered if waiting to 2.2 might be better.
I know that SSO has nothing to do with my problem and the embedded mode. But for me it's the reason why I decided to combine embedded mode and SSO since I have a main menu wrapping around everything so the forum should not be standalone.
The reason why I look at 2.2 is that I have the feeling it's quite buggy at the moment. For example you have to patch the fileupload plugin manually to get it working and it still does not work properly - I fixed one bug at my own but the second bug (no attachment operations when editing posts) still remains. Those are basic tools in modern forum software and my older Vanilla 2.0.18.10 works better than the current version. If I'm right 2.2 has a far better upload system (it's the one in this forum?). Another point is that most of the links in dashboard linking to documention/help are broken. For me it looks like "fu** 2.1...all power goes to 2.2".
It's not my intention to criticize a free software. But after some days of messing around and reading documentations I'm really asking myself if Vanilla is the right thing to choose and to contribute on. How can someone give back something or contribute on a software which does not even run properly from scratch?
The Safari problem is mentioned here http://blog.vanillaforums.com/jsconnect-technical-documentation-for-embedded-sso/, second text block. Since mobile usage increases rapidely it's an issue.
You misunderstood what the documentation is saying (I agree the terminology might lead to that conclusion).
It is talking about two completely different domains: forum on one and authority on another. If it is all on the same domain you don't need to use a sub-domain, folder is fine.
I hope that cleared things up.
grep is your friend.
That whole sentence is confusing becuase it talking about two physical servers rather than two domains. If you have the forum on a different server, then point a sub-domain to avoid cross domain issues.
grep is your friend.
I'll try a fresh installation without the subdomain, hopefully url's will be fine then.
A fresh install won't help, because the URL in your example is correct.
If you are embedding, the request arguments have to be transferred to the URL hash, because otherwise your browser will try to navigate to a URL that doesn't exist.
If your forum is actually on forum.example.com and you have embedded it on example.com/forum, then example.org/forum/discussion/1/bam-you-... usually returns a 404. Using the hash is the only way embedding can work.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
So there is no way to get the anchors right? Really starting to think of giving up on embedded mode or finding a solution to wrap around the menu with some dirty hacking.
He is actually talking about
#latest
I think this will work becuase it shoudl get transferred to the frame being the second hash. I can confirm it does get transferred tot the frame. You don't necessarily see it long in the parent. But if you look at the frame url it is there. Whether the javascript is functional is another question.grep is your friend.
One of the thing is you need an anchor point like
<span id="latest"></span>
some themes might exclude this. Especially if they pre-define the helper functions likeWriteComment
What theme are you using? If the anchor point is there it should scroll to it. If the anchor point is not there, it could be added.
grep is your friend.