URL parameters - Forum

Forum Navigation
You need to log in to create posts and topics.

URL parameters

Параметры url блокируют интерактивность странцы
URL parameters block page interactivity

Uploaded files:
  • You need to login to have access to uploads.

@lolo that's quite strange. Please check Console for possible error messages.

@luishp
в консоле чисто
the console is clean

@lolo I have used parameters many times in many diffrent projects with no issues.
I don't know what could be happening in your project.

@luishp
Странно, у меня всё наоборот. Я вдруг обнаружил, что мой проект может работать только локально, если я загружаю его на хостинг, то получаю пустую страницу, а консоль сообщает, что невозможно обнаружить зависимые файлы. Это странно, попробую переустановить всю систему.

Strange, it's the other way around for me. I suddenly discovered that my project can only run locally. If I upload it to the hosting, I get a blank page, and the console reports that dependent files cannot be found. That's odd; I'll try reinstalling the entire system.

@luishp
Не работает! я сделал для Вас тестовый проект
It doesn't work! I made a test project for you.

Uploaded files:
  • You need to login to have access to uploads.

@lolo, you’re right.
For some reason, the page-enter and start-up events are not firing when a parameter is sent.
This is quite strange. I'm not sure why it is happening.
I will have to investigate it...

@luishp
Я думаю проблема в  обработчике
$locationChangeStart, он  извлекает url с параметрами
I think the problem is in the $locationChangeStart handler, it retrieves the url with parameters

@lolo it seems the problem only appears when you try to get the parameter value from page-enter or start-up events.
If you use GetURLParameter within a button click it works fine.
What I don't understand is why sending a URL parameter prevents both events to execute with no errors at all...

@lolo, sorry, this is how it works:

This is correct:
https://domain.com/?param=value#!/pagename

This is incorrect:
https://domain.com/#!/pagename?param=value

lolo has reacted to this post.
lolo

@luishp
Oh yes, thank you very much!