Commit 4c47c53a authored by Jacques's avatar Jacques

Ensure deep linking is working as expected in

Auto switch to the rich viewer when deep linking
parent ebfb096b
...@@ -49,9 +49,7 @@ export default { ...@@ -49,9 +49,7 @@ export default {
}; };
}, },
result() { result() {
this.switchViewer( this.switchViewer(this.hasRichViewer ? RICH_BLOB_VIEWER : SIMPLE_BLOB_VIEWER);
this.hasRichViewer && !window.location.hash ? RICH_BLOB_VIEWER : SIMPLE_BLOB_VIEWER,
);
}, },
error() { error() {
this.displayError(); this.displayError();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment