I'm making a SPA
in Laravel
and jQuery
. The URL string is domain.com/company/page
. As company
is obligatory and variable, i wonder how i can edit /page
part only? I make use of window.PushState
to modify the URL without reloading.
My first guess would involve RegEx
, i'm however not too familiar with RegEx
, which makes this task kind of tricky. The hard part, is editing the second part of the URL only, as company
can vary.
Cheers :)