mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #773 no refresh after redirect() when not using mod_rewrite
This commit is contained in:
parent
d6de6f479c
commit
c41ded3124
1 changed files with 4 additions and 2 deletions
|
|
@ -465,8 +465,10 @@ function sendMailTo(to) {
|
|||
* @brief url이동 (Rhymix 개선된 버전)
|
||||
*/
|
||||
function redirect(url) {
|
||||
if (url === window.location.href || url.indexOf(window.location.href.replace(/#.+$/, "") + "#") === 0 ||
|
||||
url === window.location.pathname || url.indexOf(window.location.pathname.replace(/#.+$/, "") + "#") === 0) {
|
||||
var absolute_url = window.location.href;
|
||||
var relative_url = window.location.pathname + window.location.search;
|
||||
if (url === absolute_url || url.indexOf(absolute_url.replace(/#.+$/, "") + "#") === 0 ||
|
||||
url === relative_url || url.indexOf(relative_url.replace(/#.+$/, "") + "#") === 0) {
|
||||
window.location.href = url;
|
||||
window.location.reload();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue