A method for implementing client redirection

By generating page redirection links containing nested N-level pre-page redirection links, and using the redirection system to parse and display multi-level pre-pages, the problems of high server load and poor user experience in the existing technology are solved, and an efficient multi-level page redirection process is realized.

CN118474029BActive Publication Date: 2025-07-29BEIJING HOPE ONLINE SUBJECT TRAINING SCHOOL
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410687780.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2025-07-29
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

In the prior art, the jump of multi-level page paths requires multi-level independent redirection before the user accesses the target page, resulting in increased server load and unsmooth user experience.

Method used

By generating page jump links containing nested N-level pre-page jump links, the page manager, router manager and redirection engine in the redirect system can be used to parse and display the multi-level pre-page in order until the target page is reached.

Benefits of technology

Improve the efficiency of multi-level pre-page redirection, ensure smooth transition of user requests, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118474029B_ABST
    Figure CN118474029B_ABST
Patent Text Reader

Abstract

The present invention provides a method for implementing client redirection, which includes the following steps: The server generates a page jump link according to an access control policy and a predefined routing rule; The server sends the generated page jump link to the redirection system; The redirection system automatically completes the jump of multiple levels of preposed pages. The present invention provides a method for implementing client redirection. By defining the routing structure of redirection, through a page jump link, the redirection of multiple levels of preposed pages can be achieved in sequence, improving the efficiency of redirection of multiple levels of preposed pages. During the redirection process, the smooth transition of user requests can be ensured, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of redirection, and particularly relates to a method for implementing client redirection. Background Art

[0002] Web page redirection refers to the process in which when a client needs to access a target web page, the server forwards the client request to another web page. For example, when a user needs to access the shopping cart page of a certain shopping website, the user needs to be first redirected to the pre-login verification page. After the pre-login verification page passes the verification, the user is redirected to the login page. After successfully logging in on the login page, the user is redirected to the shopping cart page, thereby realizing the functions of the server and optimizing the user shopping experience.

[0003] For the above page access function, before the user accesses the shopping cart page, two-level page path jumps are required, namely: the pre-login verification page and the login page. In the prior art, before the user accesses the target page, multi-level page path orderly jumps are usually required. The implementation method is mainly: the server marks each level of page path in the form of parameters, and the server independently performs redirection operations on each level of page path. Therefore, the amount of information that the server needs to process is large, increasing the server load. Moreover, due to the independent redirection operations, the jumps between different levels of page paths are not smooth, reducing the user experience. Summary of the Invention

[0004] In view of the defects existing in the prior art, the present invention provides a method for implementing client redirection, which can effectively solve the above problems.

[0005] The technical solution adopted by the present invention is as follows:

[0006] The present invention provides a method for implementing client redirection, including the following steps:

[0007] Step S1, the client sends an access request for the target page to the server;

[0008] Step S2, the server generates a page jump link according to the access control policy and the predefined routing rules; wherein, the page jump link includes the target page access path and nested N-level pre-stage page jump links; each level of pre-stage page jump link is identified by a redirection parameter;

[0009] Step S3, the server sends the generated page jump link to the redirection system; the redirection system includes a page manager, a routing manager, and a redirection engine;

[0010] Step S4: The redirection engine parses the page jump link to obtain the access path of the target page; then it determines whether there is a redirection parameter in the outermost layer of the page jump link. If so, it parses the first-level pre-page jump link identified by the redirection parameter and places the first-level pre-page jump link into the jump queue.

[0011] Then it determines whether there is a redirection parameter in the outermost layer of the first-level pre-page jump link. If so, it parses the second-level pre-page jump link identified by the redirection parameter and places the second-level pre-page jump link into the jump queue; then it parses the second-level pre-page jump link, and so on in a loop until the parsing of the N-level pre-page jump link is completed to obtain the N-level pre-page jump link.

[0012] If not, it indicates that there is no nested next-level pre-page jump link in the currently parsed pre-page jump link, the parsing ends, and Step S5 is executed.

[0013] Step S5: In the jump queue, the first-level pre-page jump link, the second-level pre-page jump link,..., the N-level pre-page jump link are arranged in the front-to-back direction.

[0014] The routing manager reads the first-level pre-page jump link from the jump queue and parses it to obtain the access path of the first-level pre-page; at the same time, it removes the first-level pre-page jump link from the jump queue.

[0015] The routing manager jumps to the first-level pre-page according to the access path of the first-level pre-page and, through the page manager, displays the first-level pre-page on the client to achieve the first-level redirection of the client access.

[0016] After the first-level pre-page is successfully displayed on the client, the page manager sends a display completion notification to the routing manager.

[0017] Then, the routing manager reads the second-level pre-page jump link from the jump queue and performs the second-level redirection of the client access; and so on in a loop until there is no pre-page jump link in the jump queue, and Step S6 is executed.

[0018] Step S6: The routing manager jumps to the target page according to the access path of the target page obtained in Step S4 and, through the page manager, displays the target page on the client to achieve the client's access to the target page.

[0019] Preferably, the redirection parameter is the preUrl parameter.

[0020] The method for implementing client redirection provided by the present invention has the following advantages:

[0021] The present invention provides a method for implementing client redirection. By defining the routing structure of redirection, through a page jump link, the redirection of multiple levels of preposed pages can be achieved in sequence, improving the efficiency of redirection of multiple levels of preposed pages. During the redirection process, it can ensure the smooth transition of user requests and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic flowchart of a method for implementing client redirection provided by the present invention;

[0023] Figure 2 It is an architecture diagram of a redirection system provided by the present invention;

[0024] Figure 3 It is an application example diagram of a method for implementing client redirection provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0025] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] Refer to Figures 1 to 3 , the present invention provides a method for implementing client redirection, including the following steps:

[0027] Step S1, the client sends an access request for the target page to the server;

[0028] Step S2, the server generates a page jump link according to the access control policy and the predefined routing rules; wherein, the page jump link includes the access path of the target page and nested N-level preposed page jump links; each level of preposed page jump link is identified by a redirection parameter; the redirection parameter can be the preUrl parameter.

[0029] Step S3, the server sends the generated page jump link to the redirection system; the redirection system includes a page manager, a routing manager and a redirection engine;

[0030] Step S4, the redirection engine parses the page jump link to obtain the access path of the target page; then it judges whether there is a redirection parameter in the outermost layer of the page jump link. If so, it parses the first-level preposed page jump link identified by the redirection parameter and puts the first-level preposed page jump link into the jump queue;

[0031] Then, determine whether there is a redirect parameter in the outermost layer of the first-level pre-page jump link. If it exists, resolve to the second-level pre-page jump link identified by the redirect parameter, and put the second-level pre-page jump link into the jump queue; then parse the second-level pre-page jump link, and so on in a loop until the parsing of the N-level pre-page jump link is completed to obtain the N-level pre-page jump link;

[0032] Specifically, in front of each level of pre-page jump link, there is a redirect parameter indicating the pre-page jump link. The format of the pre-page jump link containing the redirect parameter is as follows:

[0033] xwx: / / xwx / wen_juan?preUrl=urlencode{xwx: / / xwx / huo_dong?preUrl=urlencode{xwx: / / xwx / zi_liao?preUrl=urlencode{xwx: / / xwx / login}}}. In this case, there are three redirect parameters preUrl, so there are three levels of pre-page jump links.

[0034] Record the current pre-page jump link in a queue. When the URL carried by the preUrl parameter still contains the preUrl parameter after parsing, it means that there is a more pre-pre-page jump link in the pre-page jump link. Repeat the process of obtaining preUrl and enqueue the current link.

[0035] If not, it indicates that there is no next-level pre-page jump link nested in the currently parsed pre-page jump link, the parsing ends, and step S5 is executed;

[0036] Step S5: Arrange the first-level pre-page jump link, the second-level pre-page jump link,..., the N-level pre-page jump link in the jump queue in the front-to-back direction;

[0037] The routing manager reads the first-level pre-page jump link from the jump queue and parses it to obtain the access path of the first-level pre-page; at the same time, remove the first-level pre-page jump link from the jump queue;

[0038] Resolve the access path of the pre-page to be jumped through the pre-page jump link. The specific implementation method is: calculate the corresponding relationship between the pre-page jump link and the page through the routing table

[0039] The format of the routing table is as shown below

[0040]

[0041] Through the host field in the link, such as wen_juan, the corresponding class name of the XWWenJuanViewController controller can be found. Through the class name, the page can be initialized and redirected.

[0042] The routing manager jumps to the first-level pre-page according to the access path of the first-level pre-page, and through the page manager, displays the first-level pre-page on the client, realizing the first-level redirection of the client access.

[0043] After the first-level pre-page is successfully displayed on the client, the page manager sends a display completion notification to the routing manager; therefore, after each level of pre-page is displayed, a completion notification needs to be triggered and sent to the routing manager. The routing manager uses the completion notification to determine the timing of the next link in the processing queue.

[0044] Then, the routing manager reads the second-level pre-page jump link from the jump queue and performs the second-level redirection of the client access; this process continues to loop until there is no pre-page jump link in the jump queue, and then step S6 is executed.

[0045] Step S6, the routing manager jumps to the target page according to the target page access path obtained in step S4, and through the page manager, displays the target page on the client, realizing the client's access to the target page.

[0046] The present invention provides a method for realizing client redirection. The server issues a page jump link to the redirection system through an interface or other means. The page jump link may include a redirection link, indicating that the target page of the current target link needs to be displayed after the display of the specified pre-page link is completed. In this way, the jump links of multiple pages can be defined and issued at one time.

[0047] For example, when it is required that the client first enters the login page for login operations, then enters the data filling page to complete data filling, then enters the activity page, and finally enters the questionnaire page. Through a page jump link, the entire complete page jump link can be defined. The page jump link format is as

[0048]

[0049] The redirection system parses the page jump link, obtains the preUrl parameter in it. In the example, it is the part of urlencode{xwx: / / xwx / huo_dong?preUrl=urlencode{xwx: / / xwx / zi_liao?preUrl=urlencode{xwx: / / xwx / login}}}, and puts xwx: / / xwx / wen_juan into the queue. Repeat this operation until there is no preUrl parameter. After completion, there will be four pre-page jump links in the queue: xwx: / / xwx / wen_juan, xwx: / / xwx / huo_dong, xwx: / / xwx / zi_liao, xwx: / / xwx / login. The sorting order is: xwx: / / xwx / login, xwx: / / xwx / zi_liao, xwx: / / xwx / huo_dong, xwx: / / xwx / wen_juan.

[0050] Based on xwx: / / xwx / login, the redirection system finds the page to be jumped to, which is the login page, by looking up the routing table and enters the login page.

[0051] After entering the login page, after guiding the user to complete the login operation, the login page actively sends a completion notification to the redirection module; after receiving the notification, the redirection module gets the next link from the queue, that is, xwx: / / xwx / zi_liao, and repeats the above steps until the entire process of the login page, information page, activity page, and questionnaire page is completed.

[0052] This client jump link processing method using redirection parameters solves the problem that the basic jump link only supports single-page jump definition and cannot support the definition of a complete page jump chain, and has more rich and powerful background configuration capabilities.

[0053] The present invention provides a method for implementing client redirection, which is mainly used to solve the problem that when the user needs some preconditions to complete subsequent operations, redirection is used to first jump to one or more specified pages, and then jump to the target page after the operation is completed.

[0054] The routing format in the prior art is:

[0055] xiwangxue: / / xiwangxue / example / action?channelId=6046&legaoSubjectId=-3979&gradeId=8&divisionId=3. There are the following problems: The routing path does not support generalized page configuration. One route can only open one address, so multiple addresses need to be sent to complete the pre-operation. The transition between user-side pages is not smooth, and the experience is poor.

[0056] The present invention defines a redirected routing structure. The new routing structure is as follows:

[0057] xiwangxue: / / xiwangxue / example / action?preUrl=xiwangxue%3A%2F%2Fxiwangxue%2Fexample%2Fpre_action.

[0058] The routing structure definition part includes one or more routing rules, which exist in the form of a data structure and are used to represent one or a series of pre-request paths that need to be redirected. Each routing rule includes the following elements:

[0059] Pre-path: The path of the user's pre-operation. Target path: The URL or URI identifier to which the user needs to be finally directed.

[0060] Parse the routing structure definition to identify whether a specific request meets the redirection conditions. When the conditions are met, the user request is automatically redirected from the source path to the target path without user intervention. In the redirection process of the present invention, the user's request can be smoothly transitioned.

[0061] The system part of the present invention includes but is not limited to the following components: Routing manager: A component responsible for maintaining and updating the routing structure definition. Redirection engine: The core module that executes the actual redirection process.

[0062] On the client side, the caller calls the route in the routing structure, and this route will be provided to the redirection system. First, the redirection engine disassembles it and parses out the target path and pre-path therein. According to the pre-path, the routing manager parses its content, obtains the corresponding page, initializes the page through the page manager and performs a jump. At the same time, the redirection engine will monitor the jump of the page manager. When the pre-page issues a specified notification indicating that the processing logic has been completed, the redirection engine will continue the jump process and jump to the target page specified in the route. When the target page is successfully reached, this redirection operation is completed.

[0063] As a specific embodiment, as Figure 3 shown, it includes the following process:

[0064] 1) Open the app:

[0065] 2) Click on the shopping cart, and the target path address sent is the mall page

[0066] 3) The pop-up window goes through the generalization path to the login page

[0067] 4) After logging in, it jumps to the target page, the shopping cart page.

[0068] The present invention provides a method for implementing client redirection. By defining the routing structure of redirection, through a page jump link, the redirection of multiple levels of preposed pages can be achieved in sequence, improving the efficiency of redirection of multiple levels of preposed pages. During the redirection process, it can ensure the smooth transition of user requests and improve the user experience.

[0069] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present invention, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A method for implementing client redirection, characterized in that, Including the following steps: Step S1, the client sends an access request for the target page to the server; Step S2, the server generates a page jump link according to the access control policy and the predefined routing rules; wherein, the page jump link includes the access path of the target page and nested N-level previous page jump links; each level of previous page jump link is identified by a redirect parameter; Step S3, the server sends the generated page jump link to the redirection system; the redirection system includes a page manager, a routing manager, and a redirection engine; Step S4, the redirection engine parses the page jump link to obtain the access path of the target page; then it determines whether there is a redirect parameter in the outermost layer of the page jump link. If so, it parses the first-level previous page jump link identified by the redirect parameter and puts the first-level previous page jump link into the jump queue; Then it determines whether there is a redirect parameter in the outermost layer of the first-level previous page jump link. If so, it parses the second-level previous page jump link identified by the redirect parameter and puts the second-level previous page jump link into the jump queue; then it parses the second-level previous page jump link, and so on in a loop until the parsing of the N-level previous page jump links is completed to obtain the N-level previous page jump links; If not, it indicates that there is no next-level previous page jump link nested within the currently parsed previous page jump link, the parsing ends, and step S5 is executed; Step S5, the first-level previous page jump link, the second-level previous page jump link,..., the N-level previous page jump links are arranged in the jump queue in the order from front to back; The routing manager reads the first-level previous page jump link from the jump queue and parses it to obtain the access path of the first-level previous page; at the same time, it removes the first-level previous page jump link from the jump queue; The routing manager jumps to the first-level previous page according to the access path of the first-level previous page, and through the page manager, displays the first-level previous page on the client to implement the first-level redirection of the client access; After the first-level previous page is successfully displayed on the client, the page manager sends a display completion notification to the routing manager; Then, the routing manager reads the second-level previous page jump link from the jump queue and executes the second-level redirection of the client access; and so on in a loop until there are no previous page jump links in the jump queue, and step S6 is executed; Step S6, the routing manager jumps to the target page according to the access path of the target page obtained in step S4, and through the page manager, displays the target page on the client to implement the client's access to the target page.

2. The method for implementing client redirection according to claim 1, wherein The redirect parameter is the preUrl parameter.

Citation Information

Patent Citations

  • Page skipping method and device, electronic equipment and computer readable storage medium

    CN110781432A

  • Page skipping method, page skipping system, client device and server device

    CN111859198A